61,110
社区成员
发帖
与我相关
我的任务
分享
//获取头部高度
var topHeight=$('#top_userinfo').height();
//获取底部高度
var bottomHeight=$('#footer').height();
//得到中间高度
var midHeight=cliHeight-(topHeight+bottomHeight);
//赋值给左右线条层
//alert(midHeight);
$('#bk_right').css("height",midHeight);
$('#bk_left').css("height",midHeight);
#bk_left{
width:1px;
height:auto; //这个就要根据屏幕的大小计算出减去 头部和底部的值
position:absolute;
z-index:5;
background:#6386c8;
float:left;
margin-left:15%;
margin-top:100px;
margin-bottom:100px;}
#bk_top{width:42%;
height:1px;
position:absolute;
z-index:5;
background:#6386c8;
float:left;
margin-top:100px; //头部和底部都是可以固定高度的
margin-left:15%;
}