如何解决力DIV在工作台TD内达到最高高度
| 我懂了:<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>
我希望本文能很好地解释我的问题:)
解决方法
首先,在2011年使用表格布局是一个坏主意,更不用说混合表格和div布局了!
我觉得在仅div的布局中执行此操作要比此简单得多。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。