[問題] CSS定位問題

看板Web_Design作者 (嗯)時間19年前 (2006/11/21 09:37), 編輯推噓2(202)
留言4則, 3人參與, 最新討論串1/4 (看更多)
div圖層如果沒有特別定位 他應該會自動換行 <div>test1</div> <div>test2</div> test1 test2 但是剛剛想用css做表格時 <style> .td{ float:left; } </style> <div> <div class="td">test1</div> <div class="td">test2</div> </div> <div> <div class="td">test3</div> <div class="td">test4</div> </div> 就會變成 test1 test2 test3 test4 是因為被td的float影響嗎!? 感激回答 -- ◢◣ ◢◣◥████ ◢███◣ ████ ███▉█ ◢█ ◣◢ ██ ███ ◥█ ███▉█ ◢▉█ ◢██ ███ ◢██ ◢██ ███ ◥██◤ █▇▇▇◤ █▉█ █▇▇ █▇ ▉▇▇ █▉█ ██ ▉▉█▏▏◢█ ██▇◣ █▇█ ▇▇█ ██ ███ █▇█▎██ █▉▉█▏▏ rushcat -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.119.199.250

11/21 10:54, , 1F
你都定義td了,怎會沒有差別呢?推個文斷了5次線XD
11/21 10:54, 1F

11/21 12:13, , 2F
順便問個題外話,為什麼要用div做table呢..?
11/21 12:13, 2F

11/21 12:25, , 3F
因為目前碰到的情況 有些效果table做不到 又不想混搭
11/21 12:25, 3F

11/21 12:25, , 4F
所以乾脆用div來寫table
11/21 12:25, 4F
文章代碼(AID): #15ObXrf3 (Web_Design)
文章代碼(AID): #15ObXrf3 (Web_Design)