小编Gin*_*ols的帖子

CSS/Bootstrap div 填充它的父高度

我几乎坚持让我的代码的侧边菜单 div 填充父高度为 100%。在提出问题之前,我已经尝试了很多谷歌搜索和测试。

代码片段:http : //jsfiddle.net/zntxaspd/

html, body { height: 100%;}
.row.content { height: 100%; width:70%; margin: auto; }
.sidenav { padding-top: 20px;background-color: #f1f1f1; height: 100%;}

@media screen and (max-width: 767px) {
.sidenav {
    height: auto;
    padding: 15px;
}
.row.content {height:auto;}
}
h5  { font-size: 14px; border-bottom: 6px solid red; font-weight: bold; }
.rightcontainer {   width:100%; height:100% margin: auto; border: 0px solid; border-radius: 4px; margin-bottom: 5px; border-bottom: 6px solid red;}
.rightcontainer .accountpanel .columncontainer .col-sm-6 { padding-right: 0px; padding-left: …
Run Code Online (Sandbox Code Playgroud)

html css twitter-bootstrap-3

5
推荐指数
1
解决办法
1万
查看次数

标签 统计

css ×1

html ×1

twitter-bootstrap-3 ×1