【发布时间】:2023-02-02 00:29:13
【问题描述】:
我想使用 HTML 代码(在 jupyter notebook markdown 单元格中)将表格中的文本左对齐。
文本对齐不起作用。
这是单元格的样子: enter image description here
这是我使用的代码:
<table>
<tr style="font-size: 20px; font-weight: bold; text-align: center;">
<td>Header 1</td>
<td>Header 2</td>
</tr>
<tr style="font-size: 16px; text-align: right;">
<td>Cell 1</td>
<td>Cell 2</td>
</tr>
<tr style="font-size: 16px; text-align: right;">
<td>Cell 3</td>
<td>Cell 4</td>
</tr>
</table>
【问题讨论】:
标签: python html markdown jupyter