本文主要是介绍html实现页面左中右布局,可扩展性的页面布局:左右结构, 左中右结构,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
左右结构,左边100%;右边宽度固定
css
#header{height:80px; background:#CCC;}
#center{overflow:hidden; zoom:1;}
#main_wrapper{float:left; width:100%; margin-top:10px; margin-left:-210px;}
#main{height:200px; margin-left:210px; background:#999;}
#sidebar{float:right; width:200px; margin-top:10px; height:200px; background:#AAA;}
#footer{height:50px; margin-top:10px; background:#CCC;}
HTML
左右结构,左边固定,右边100%
css
#header{height:80px; background:#CCC;}
#center{overflow:hidden; zoom:1;}
#sidebar{float:left; width:200px; margin-top:10px; height:200px; background:#AAA;}
#main_wrapper{float:right; width:100%; margin-top:10px; margin-left:-210px;}
#m
这篇关于html实现页面左中右布局,可扩展性的页面布局:左右结构, 左中右结构的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!