Access denied, Please sign in and make sure you have proper permission.
.div { position: fixed; }
行不行呢
.div { position: fixed !important; }
.container {
position:relative;
}
#sidebar {
width: 300px;
position:absolute;
top:0;
left:0;
}
#main {
padding-left:300px;
}
<div class="container">
<div id="sidebar"></div>
<div id="main"></div>
</div>
绝对靠谱!适合任意需要左右排列的场景