Heim >Web-Frontend >HTML-Tutorial >自适应宽度的左右结构DIV+CSS_html/css_WEB-ITnose
css
.header{border-bottom:1px solid #ccc;margin-bottom:5px;}
.MainContainer{min-width: 960px;max-width: 1600px;}
.sidebar{width:180px;float:left;margin-right: -175px;border-right:1px solid #ccc;min-height:500px;padding:5px;}
.main{float:left;margin-left: 180px;padding:5px;}