2012-10-06 25 views
1

我有HTML表是這樣的:合併表CSS

------------------------------------------------- 
|Column 1     |Column 2   | 
------------------------------------------------- 
|this is the text in column |this is the column | 
|one which wraps   |two test   | 
------------------------------------------------- 

但我不希望第二行是一個列僅是這樣的:當我行跨度上使用

------------------------------------------------- 
|Column 1     |Column 2   | 
------------------------------------------------- 
|this is the text in column |this is the column | 
|one which wraps two test      | 
------------------------------------------------- 

一列,上面的列不斷擴大。

+0

你嘗試合併單元格=「2」 – Jayy

回答

3

之後給第一個也沒有s的colspan =「2」。

像有些東西下面

<table> 
    <tr> 
     <td> 
      this is the text in column 
     </td> 
     <td> 
      this is the column 
     </td> 
    </tr> 
    <tr> 
     <td colspan="2"> 
      one which wraps two test 
     </td> 
    </tr> 
</table> 
+0

感謝確實非常簡單,這是當你嘗試代碼在早上5點在上午:)歡呼發生了什麼 – ant