[英]CSS/HTML 2 Columns with sticky footer in the left column
CSS:
column {
display:inline-block;
vertical-align:top;
}
#left, #right{width: 50%;} /* more or less depends on the margin */
#footer{height:200px;}
HTML
<div>
<div id = 'left' class = 'column'>
<div id = 'content'>
<div id = 'footer'>
</div>
<div id = 'right' class = 'column'></div>
</div>
类似于: http : //jsfiddle.net/PFcUa/ ?
我用过计算:
.cutter {
background: orange;
position: relative;
overflow-y: scroll;
height: calc(100% - 200px);
}
所以它只适用于 ie9+
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.