看板 Web_Design 關於我們 聯絡資訊
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
shiuu:你都定義td了,怎會沒有差別呢?推個文斷了5次線XD 11/21 10:54
HiroshiKen:順便問個題外話,為什麼要用div做table呢..? 11/21 12:13
rushcat:因為目前碰到的情況 有些效果table做不到 又不想混搭 11/21 12:25
rushcat:所以乾脆用div來寫table 11/21 12:25