问题
In my webiste i have 3 divs.
<div class="main_div">
<div class="left"></div>
<div class="center"></div>
<div class="right"></div>
</div>
the class left is float left and center is also float left and class right is float right. how to make the left and the right class div fixxed and the center div can be scrolled like facebook.com
回答1:
You may need to update properties like this..
.left{position:fixed;left:0px;float:left;}
.right{position:fixed;right:0px;float:right;}
.center{position:absolute;left:value;float:left;}
来源:https://stackoverflow.com/questions/17122579/how-to-make-a-left-and-right-div-fixed-and-center-div-scrollable