http://serafimtsotsonis.com/dates.html如何改变TD宽度?
在此页面链接我想更改第一行,以便将整个句子拉长,“Serafim bla bla bla”不占用3行。这是因为我有33%的宽度限制。
我能做些什么,只改变那条线,而句子只占用一条线,就像其他人一样?
http://serafimtsotsonis.com/dates.html如何改变TD宽度?
在此页面链接我想更改第一行,以便将整个句子拉长,“Serafim bla bla bla”不占用3行。这是因为我有33%的宽度限制。
我能做些什么,只改变那条线,而句子只占用一条线,就像其他人一样?
可以取出空middel TD在第一行中,并设置该行中的最后一个td具有2的colspan。类似于:
<table cellspacing="0">
<tbody>
<tr class="line">
<td>20_January 2013 </td>
<td colspan="2" style="padding-left: 10px; ">
Serafim Tsotsonis mixtape 24 :00 - 01 :00 @ <a href="http://www.dinamo.fm/" target="_blank">dinamo.fm</a></td>
</tr>
<tr class="line">
<td>11_January 2013 </td>
<td></td>
<td style="padding-left: 10px;"><a href="https://www.facebook.com/events/565108543517894/567425516619530/" target="_blank">Sporos Bar, Athens</a></td>
</tr>
...
或者是trhis不是你想要达到的目标?
使用NOWRAP属性
<td nowrap="nowrap">
或CSS(更好,因为NOWRAP属性在HTML 4.01弃用,在HTML5中不存在)
<td style="white-space: nowrap">
I think you can use the <colgroup>tag
<colgroup>
<col width="total width of the first column" />
<col width="*" />
</colgroup>
注:使用此,如果列具有宽幅采取
叶氏,这作品!谢谢 –