Sidebar亂跑 - 部落格

Table of Contents

http://4test-4test-4test.blogspot.com/


<div id='content-wrapper'>
<div id='crosscol-wrapper' style='text-align:center'>
<b:section class='crosscol' id='crosscol' showaddelement='no'/>
</div>
<div id='main-wrapper'>
<b:section class='main' id='main' showaddelement='yes'>
<b:widget id='Blog1' locked='true' title='網誌文章' type='Blog'/>
</b:section>
</div>
<div id='sidebar-wrapper'>
<b:section class='sidebar' id='sidebar' preferred='yes'>
</b:section>
</div>
<div class='clear'/>
</div><!-- End of content-wrapper -->

width、margin之類的設定應該也沒有問題

┌──────────────┐┌────────┐
│ main-wrapper ││sidebar-wrapper │ 這是我要的樣子
└──────────────┘└────────┘ 一左一右

┌────────────────────────┐
│ main-wrapper │ 結果卻變成這樣
└────────────────────────┘ 一上一下
┌────────────────────────┐
│ main-wrapper │
└────────────────────────┘


有人可以幫我看一下是怎麼一回事嗎?

第一次自己試著從無到有寫template,卻遇到這種怪問題 囧

--

All Comments

Genevieve avatarGenevieve2009-12-22
你要讓她們兩個float呀
沒float就不會一左一右
Joseph avatarJoseph2009-12-26
0.0 真的耶! 多謝!