how to make a left and right div fixed and center div scrollable [closed]

余生颓废 提交于 2019-12-25 05:37:29

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!