【发布时间】:2011-06-13 06:58:47
【问题描述】:
我知道了:
<style>
.topdiv {
vertical-align:top
}
.bottomdiv {
vertical-align:bottom
}
</style>
<table border="1" cellspacing="0" cellpadding="0">
<tr>
<td>
content<br/>
content<br/>
content<br/>
content<br/>
This cell holds content that is higher than the right side<br/>
content<br/>
content<br/>
content<br/>
content
</td>
<td>
<div class="containerdiv">
<div class="topdiv">
I want this DIV at the top of the cell
</div>
<div class="centerdiv">
I want this DIV in the middle of the cell
</div>
<div class="bottomdiv">
I want this DIV at the bottom of the cell
</div>
</div>
</td>
</tr>
</table>
我希望文本能很好地解释我的问题:)
【问题讨论】:
-
我已经jsfiddle为您和其他人提供了它。
标签: css html html-table