我有一個表格單元格,我希望在單元格頂部顯示一些內容,並在底部顯示其他內容。html/css在表格中使用div
我想在單元格內使用div來完成此操作,但它不工作。
對這個有限的任務使用css也可以,但是,重做整個頁面在CSS是不是一個選項,因爲整個網站是在表中佈局。
這裏的jsfiddle說明問題:
這裏是代碼*相同的jsfiddle:
<table border="1">
<tr>
<td rowspan="2" valign="top">cell 1<div style="align-vertical: bottom">
want at bottom</div>
</td>
<td>cell 2<br>
<br>
<br>
</td>
</tr>
<tr>
<td>cell 3</td>
</tr>
</table>
的任何建議非常感謝。
'作爲整個網站佈局與表' - **那麼這是你的問題夫人!** –
一個css粉絲?你會怎麼做在CSS? – user1260310
[使用CSS很容易](http://jsfiddle.net/sellmeadog/rVqgn/),特別是在框架[960.gs](http://960.gs)或[Bootstrap]( http://twitter.github.com/bootstrap/) – sellmeadog