CSS:
.one { width: 13%; } .two { width: 30%; } .three { width: 30%; }
HTML:
相关标签: 2条回答 春和景丽 2021-01-26 17:14 First of all you forgot to close the td after the first input. <td class = "one"><input type="text" name="quantity1" value=""/></td> You can add this css to make them center td { text-align:center; } Have a look on this EXAMPLE 0 讨论(0) 发布评论: 提交评论 加载中... 北海茫月 2021-01-26 17:16 You can add this to your css: td.two, td.three { text-align:right; } You need the td prefix cause your th is using the same css class. I hope that helps. 0 讨论(0) 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复 热议问题
First of all you forgot to close the td after the first input.
<td class = "one"><input type="text" name="quantity1" value=""/></td>
You can add this css to make them center
td { text-align:center; }
Have a look on this EXAMPLE
You can add this to your css:
td.two, td.three { text-align:right; }
You need the td prefix cause your th is using the same css class.
td
th
I hope that helps.