°ò¥»ª©­±³]©w

¥Îfloat¤è¦¡±Æª©ªº·§©À¦p¤U¡G

¤@¡B¨âÄ榡A¡G

#bar {
width:200px;
float:left;
} 
#main{
margin-left:200px;
}

XHTML­ì©l½X¦p¤U¡G

<div id="bar">
</div>
<div id="main">
</div> ¤G¡B¨âÄ榡B¡G
#wrapper { width:700px; } #main{ width:500px; float:right; }
#bar { width:200px; float:left; } XHTML­ì©l½X¦p¤U¡G
<div id="wrapper"> <div id="bar"> </div>
<div id="main">
</div> </div>
¤T¡B¤TÄ榡A¡G #bar { width:200px; float: left; } #extra { width: 200px; float: ritht; } #main { margin-left:200px; margin-right:200px; }

XHTML­ì©l½X¦p¤U¡G
<div id="bar">
</div>
<div id="extra">
</div>
<div id="main">
</div>

¥|¡B¤TÄ榡B¡G

#wrapper {
width:750px;
}
#content {
width:550px;
float:right;
}
#bar {
width:200px;
float:left;
}
#main {
width:300px;
float:left;
}
#extra {
width:250px;
float:right;
}

XHTML­ì©l½X¦p¤U¡G

<div id="wrapper">
    <div id="content">
      <div id="main">
</div> <div id="extra"> </div> </div>
<div id="bar">
</div> </div> ³Ì«á¡G....................................... ­n§âwrapper¸m¤¤¹ï»ô¡A¤èªk¦p¤U¡G body { margin:0; padding:0; text-align:center; } #wrapper { width:700px; margin-left:auto; margin-right:auto; text-align:left; } »¡©ú¡Gwrapperªº¼e«×¨Ì¹ê»Ú³]©w¡C
¬õ¦r³¡¥÷¬O°w¹ïWindowIE5.5¥H«eª©¥»ªºbug¦Ó³]©w¡C ¸ê®Æ°Ñ¦Ò¡G¤jÃ÷F¡m¦V¥@¬É³ÌTopªººô¯¸¾ÇCSSºô­¶³]­p¡n³ÕºÓ¤å¤Æ¥Xª©

A¬O¨ÌJeffrey Zeldmanªº³]­p
B¬O¨ÌDouglas Bowmanªº³]­p