[英]How to align text vertically in a table cell
I would like the text to appear inline in my table cell. 我希望文本在表格单元格中内联显示。 However, the text is coming in the single line whatever be the length of text. 但是,无论文本的长度如何,文本都会以单行显示。 I used text_align and padding too, but it did not help. 我也使用了text_align和padding,但没有帮助。
CSS: CSS:
table td { display: table-cell; vertical-align: top; }
You can place your line inside ScrollBox
and then place that ScrollBox
inside the <td>ScrollBox goes here with content</td>
. 您可以将您的内部行ScrollBox
,然后地方, ScrollBox
里面<td>ScrollBox goes here with content</td>
ScrollBox
will provide you the functionality to wrap as well as Scroll,if required. 如果需要, ScrollBox
将为您提供包装和滚动功能。
You can search google for Creating a ScrollBox
您可以在Google中搜索“ Creating a ScrollBox
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.