2013-07-19 146 views
0

我希望文本內嵌顯示在我的表格單元格中。 但是,無論文本的長度如何,文本都會在單行中出現。 我也使用了text_align和padding,但它沒有幫助。如何在表格單元格中垂直對齊文本

CSS:

table td { display: table-cell; vertical-align: top; } 
+6

你能告訴我們一些你的代碼嗎? –

+0

看來你的問題已經得到解答:http://stackoverflow.com/questions/6874635/vertical-alignment-of-text-in-a-table-cell – morgano

+0

表td {display:table-cell; vertical-align:top; } – user2575422

回答

-1

你可以把裏面ScrollBox你的線,然後將那ScrollBox<td>ScrollBox goes here with content</td>內。

ScrollBox將爲您提供包裝以及滾動功能(如果需要)。

您可以搜索谷歌的Creating a ScrollBox

相關問題