我想将表格的第一行与一行文本对齐。比如我要实现
** some text ** |first row of table |
|second row of table|
...
当我使用 <table>
元素它总是把表格放在一个新行上,给我
** some text **
|first row of table |
|second row of table|
...
我不想要。
我只会基本的 HTML,但不会 CSS。尽管如此,任何涉及 CSS 的解决方案都很好,我只是想要一个快速修复。
最佳答案
或者你也可以在 table
中使用 rowspan
<table border="1">
<tr>
<td rowspan="2" valign="top">some text</td>
<td>first row of table</td>
</tr>
<tr>
<td>second row of table</td>
</tr>
</table>
关于html - 如何将表格的第一行与一行文本对齐,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27375093/