2011-11-03 67 views
0

欲名稱,測試1和TEST2的寬度自動填寫所有的「TD」(除了標籤)進行選擇,而不是設置其寬度。100%的寬度或在表

<table> 
    <tbody> 
     <tr> 
      <td colspan="2"><span class='star'>*</span><label>Title:</label>{{ form.name }}</td> 
     </tr> 
      <td><span class='star'>*</span><label>Test1:</label>{{ form.dataSecrecy }}</td> 
      <td><span class='star'>*</span><label>Test2:</label>{{ form.costType }}</td> 
     </tr> 
    </tbody> 
</table> 

例子: enter image description here

我要讓他們像這樣:

enter image description here

不是這個:

enter image description here

任何sugges蒸發散? 謝謝!

回答

3

<input style='width:100%;' ...>

+2

或'