2011-11-03 63 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

或'