[英]Expand element vertically to fill
Site: http://ace.brianhare.com/ 网站: http : //ace.brianhare.com/
How can I get it so the section
and aside
elements fill vertically and hide the yellow background? 如何获取它以使
section
和aside
元素垂直填充并隐藏黄色背景?
Basically I don't want the yellow background to ever show. 基本上我不希望黄色背景显示出来。
It's OK to stretch everything vertically to do this, or if I have the choice, having the div
with id table
stretch and the aside
. 这是确定的垂直伸展一切要做到这一点,或者如果我可以选择,具有
div
id为table
拉伸和aside
。
Prefer css only but will accept javascript/Jquery solutions. 仅喜欢css但会接受javascript / Jquery解决方案。
Try adding this CSS-code: 尝试添加此CSS代码:
html, body, aside, section {
height:100%;
}
#bounds {
height:-webkit-calc(100% - 50px);
height:-moz-calc(100% - 50px);
height:-o-calc(100% - 50px);
height: calc(100% - 50px);
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.