DIV+CSS两列布局左右定宽布局代码,左右两列格式,是网站开发过程中最常用的一种架构,青岛星网跟大家分享:DIV+CSS两列布局左右定宽布局代码。

<div class="g-bd f-cb">
<div class="g-mn">
<p>左侧定宽</p>
</div>
<div class="g-sd">
<p>右侧定宽</p>
</div>
</div>/* 两列定宽布局 */
.g-bd{width:950px;margin:0 auto;}
.g-sd{float:right;width:710px;}
.g-mn{float:left;width:230px;}
/* 预览辅助样式 */
body{margin:20px; font-size:16px;}
p{height:150px;padding:10px;color:#fff;background:#ff0097;}
.g-sd p{background:#4eb3b9;height:150px;}页面还用到了:reset框架代码

