是否可以使用bootstrap拥有2个固定宽度的侧边栏和一个以流体为中心的内容区域
请看一下截图链接,你可以检查我尝试过的代码。
<div class="container-fluid full-height no-padding">
<div class="row full-height no-margin">
<div class="jumbotron" data-pages="parallax">
<div class="container-fluid">
<ul class="breadcrumb">
</ul>
</div>
</div>
<div class="col-sm-9 no-padding full-height">
<div class="col-sm-2" id="resizable">
<div class="" id="default-tree">
<ul class="full-height" id="treeData" style="display: none;">
</ul>
</div>
</div>
<div class="col-sm-10 full-height">
<div class="row files-row">
<div class="col-xs-2 file-thumbnail">
<a href="#" class="thumbnail">
<img src="http://placehold.it/300x150" alt="...">
<label class="center-block">File name</label>
</a>
</div>
</div>
</div>
</div>
<div class="col-sm-3 no-padding full-height">
<div class="bg-white full-height"></div>
</div>
</div>
Layout screenshot
发布于 2015-07-31 19:24:45
您可以使用下面的链接进行检查。
http://jsfiddle.net/DUR6d/
*
{
margin:0;padding:0;
}
html,body
{
width: 100%;
height: 100%;
background: #fff;
}
.main
{
box-sizing:border-box;
}
#leftSidebar {
width: 80px;
position: fixed;
float:left;
top: 0px;
bottom: 0px;
left: 0px;
margin: 4px;
box-sizing:border-box;
background-color: gray;
}
#middle {
height: 100%;
margin-left:88px;
box-sizing:border-box;
}
#rightSidebar {
position: fixed;
top:0;
right:0;
height:100%;
margin: 4px;
box-sizing: border-box;
background-color: gray;
}
#middle, #rightSidebar
{
width: calc(50% - 40px);
}
article {
width: 97%;
height: 80px;
margin: 4px 0;
background-color: #ccc;
}https://stackoverflow.com/questions/31743999
复制相似问题