我已经创建了自举网格格式的布局。我想我的中心div是col-md-6
应该是可滚动的,左右div应该是固定的。我也检查过这个问题how to make a left and right div fixed and center div scrollable但是,当我尝试这个技巧,我没有得到预期的结果,因为自举网格格式。中心div滚动和左,右分区固定
这里是我的html代码:
/* Using this CSS is giving me unexpected result.*/
.left {
position: fixed;
left: 0px;
float: left;
}
.right {
position: fixed;
right: 0px;
float: right;
}
.center {
position: absolute;
left: value;
float: left;
}
<div class="col-lg-3 col-md-3 col-sm-12 col-xs-12">
LEFT DIV
</div>
<div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
MIDDLE DIV
</div>
<div class="col-lg-3 col-md-3 col-sm-12 col-xs-12">
RIGHT DIV
</div>
任何形式的帮助将高度赞赏。由于
请添加类'左,中,right'到的HTML代码发布的div。 –
没有一个答案符合正确的bootstrap实现,为列使用'col-sm-12 col-xs-12'的目的是完全荒谬的。 – kolunar