[問題] 無法顯示CSS

看板Web_Design作者 (狂想)時間19年前 (2006/10/09 17:51), 編輯推噓3(300)
留言3則, 3人參與, 最新討論串1/1
剛剛練習用CSS排版 在DW裡面的設計視窗可以成功的顯示 但是用IE開卻無法跑出像DW設計模式中看到的 我想應該是違反了某些標準的寫法 可是我不知道是哪裡違反 可以幫我看看嗎 另外要怎麼樣設計出標準文件呢 我手上有工具書 卻沒有介紹 我是IE6.0版 ------------- CSS CODE如下 ------------- /* CSS Document */ body { text-align:center; } #top { width:600; margin: 0; } #content { width:600; margin:0; } #left { background-color:#FF66FF; width:124; height:300; float:left; } #right { background-color:#CC99FF; width:476; height:300; float:right; } #footer { background-color:#0033FF; width:200; height:25; clear:both; } -------- 配置如下 -------- <div id="top"> <img src="images/banner01.jpg" width="124" /> </div> <div id="content"> <div id="left"> <ul> <li>我很好</li> <li>你很好</li> <li>他很好</li> </ul> </div> <div id="right"> <br><br><br><br><br><br><br><br><br> </div> </div> <div id="footer"></div> -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 61.228.32.251 ※ 編輯: fantasywater 來自: 61.228.32.251 (10/09 17:59)

10/09 18:36, , 1F
width top left height 他們的單位呢?
10/09 18:36, 1F

10/09 18:38, , 2F
嗯嗯..一樓沒有錯,一定要把px寫上去
10/09 18:38, 2F

10/09 19:00, , 3F
加單位之後就沒有錯了~感謝
10/09 19:00, 3F
文章代碼(AID): #15AXkteh (Web_Design)