我有下面的代码;然而它没有给我想要的结果 - 我所追求的是根据下面的图片,我做错了什么?Html,table,img&css - 如何让文本正确包装?
<style>
table.control_grid tr {
text-align: center;
width: 200px;
}
table.control_grid td {
width: 120px;
height: 48px;
}
table.control_grid a {
text-decoration: none;
}
table.control_grid img {
vertical-align: text-top;
}
</style>
<table class="control_grid">
<tr>
<td><img width="48" height="48" src="icon1.gif">My text & stuff, overflow??</td>
<td><img width="48" height="48" src="icon1.gif">Icon1</td>
<td><img width="48" height="48" src="icon1.gif">Icon2</td>
<td></td>
<td></td>
</tr>
</table>
期望的结果:
Desired result http://mpasqualone.com/wantedResult.gif
这个+表格布局似乎是最干净的方法,谢谢! – 2010-06-08 09:49:55
@Michael Pasqualone:的确如此。 – ANeves 2010-06-08 09:56:11