专著于富媒体技术~
本站某些作品来源于互联网,如果侵犯了您的利益,请留言说明
[此文来源于互联网,牛C网只负责收集整理]

用于布局架构:

#outer{
overflow:hidden;
}
#outer .panel{
float:right;
width:286px;
padding-left:21px;
border-left:1px solid #E5E3D7;
padding-bottom: 27670px !important;
margin-bottom: -27670px !important;
}
#outer .main{
float:left;
width:510px;
padding-bottom: 27670px !important;
margin-bottom: -27670px !important;
}

用于表格的JS代码:

<script>
function div(){
var l=document.getElementById("div1").getElementsByTagName("li");
var num=4;
var i=l.length / num ;
for(var a=0;a<i;a  )
{
  var max=l[num*a].scrollHeight;
  var kk=num*a;
  var dd=num*a;
  for(kk;kk<l.length;kk  )
  {  
   if(max<l[kk].scrollHeight)
   {
    max=l[kk].scrollHeight;
   }  
   if(kk==num*(a 1)-1)
   break;
  }
  for(dd;dd<l.length;dd  )
  {
   l[dd].style.height=max "px";
   if(dd==num*(a 1)-1)
   break;
  }  
}
}
</script>

ps:在div里面调用div()就把里面的li重复4列的循环!

    

            


作者:gdgzboy@牛C网
地址:http://www.niuc.net/post/3568/
版权所有。转载时必须以链接形式注明作者和原始出处及本声明!



发表评论
表情
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
打开HTML
打开UBB
打开表情
隐藏
昵称   密码   游客无需密码
网址   电邮   [注册]
               

验证码 不区分大小写