由於一些奇怪的原因,我無法使其正常工作(對於3列布局),它們顯示爲在不同的行上。 ------------------- CSS -----------------3 Column Div樣式
.left_content{
float:left;
position:relative;
width:30%;
padding:10px;
margin-right:0px;
margin-left:0px;
border-style:solid;
border-width:2px;
background-image: url(../images/right_divider.gif);
background-repeat: no-repeat;
background-position: left bottom;
}
.center_content{
float:left;
position:relative;
width:40%;
padding:10px;
margin-left:10%;
border-style:solid;
border-width:0px;
background-image: url(../images/right_divider.gif);
background-repeat: no-repeat;
background-position: left bottom;
}
.right_content{
float:right;
position:relative;
width:20%;
padding:10px;
border-style:solid;
border-width:0px;
background-image: url(../images/right_divider.gif);
background-repeat: no-repeat;
background-position: left bottom;
}
---------------html--------------
<div class="left_content">
Nav Left
</div>
<div class="center_content">
main Con<br>main Con<br>main Con<br>main Con<br>main Con<br>main Con<br>main Con<br>
</div>
<div class="right_content">
right Con
</div>
任何人請? –