欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

CSS布局實(shí)例代碼 兩列布局實(shí)例

  發(fā)布時(shí)間:2009-11-25 00:11:07   作者:佚名   我要評(píng)論
CSS兩列布局,右側(cè)固定,左側(cè)自適應(yīng)寬度.
CSS兩列布局,右側(cè)固定,左側(cè)自適應(yīng)寬度
<div style="width:90%; margin:0 auto;">
<div style="width:200px; float:right;">這是右側(cè)的內(nèi)容</div>
<div style=" margin-right:210px;">這是左側(cè)的內(nèi)容,自適應(yīng)寬度</div>
</div>
CSS兩列布局,左側(cè)固定,右側(cè)自適應(yīng)寬度
<div style="width:90%; margin:0 auto;">
<div style="width:150px; float:left;>這是左側(cè)的內(nèi)容 固定寬度</div>
<div style=" margin-left:160px;>中間內(nèi)容,自適應(yīng)寬度</div>
</div>
CSS三列布局,左右寬度固定,中間自適應(yīng)寬度
<div style="width:90%; margin:0 auto;">
<div style="width:200px; float:right; >這是右側(cè)的內(nèi)容 固定寬度</div>
<div style="width:150px; float:left; >這是左側(cè)的內(nèi)容 固定寬度</div>
<div style=" margin-left:160px;margin-right:210px;>中間內(nèi)容,自適應(yīng)寬度</div>
</div>

三列等高布局
<style>
*{ margin:0; padding:0}
#content{overflow:hidden}
#content #left,#content #center,#content #right{margin-bottom:-10000px;padding-bottom:10000px;width:300px;float:left;}
#content #left{background:#f00;}
#content #center{background:#0ff}
#content #right{background:#f0f}
</style>

<div id="content">
<p id="left">left<br />left<br />left<br />left<br />left<br />left</p>
<p id="center">center</p>
<p id="right">right</p>
</div>

相關(guān)文章

最新評(píng)論