我无法设置100%高度左侧栏。我尝试了所有可能的方法,在这里我使用引导列。请帮助我。谢谢我在引导程序中面临100%高度问题html
<body>
<div class="container-fluid main-template">
<div class="row">
<div class="col-sm-3 col-md-2 left_side">left_side</div>
<div class="col-sm-9 col-md-10 right_side">right_side</div>
</div>
</div>
<footer class="main-footer">
</body>
而且我已经为html,body,main-template,row,left_side和right_side设置了高度100%。仍然不起作用。
html, body {
background-color:#ffffff;
min-height: 100%;
}
.main-template {
padding:0px;
height:100%;
}
.row {
height:100%;
}
.left_side, .right_side {
min-height:100%;
padding-right: 0px !important;
padding-left: 0px !important;
}
页脚CSS:
.main-footer {
position:absolute;
bottom:0;
padding: 10px 20px 5px;
width:100%;
background-color:#33b3e3;
height:50px;
}
哪里是你的CSS? –
使用'!important',这样它就会覆盖引导css –
我用过了!重要的还有,还没有工作 –