Python xhtml2pdf table 单元格文本显示为垂直
Python xhtml2pdf table cell text display to vertical
我正在使用 xhtml2pdf 在 Django 中生成报告,我想让我的单元格文本之一垂直显示,但我无法使用 css。
这是一些尝试:
.vertical-text {
writing-mode: tb-rl;
}
<table>
<tbody>
<tr>
<td class="vertical-text" >V text</td>
</tr>
</tbody>
</table>
UPDATE
writing-mode
属性 在 supported css properties 中丢失。有什么解决方法吗?
我正在使用 xhtml2pdf 在 Django 中生成报告,我想让我的单元格文本之一垂直显示,但我无法使用 css。
这是一些尝试:
.vertical-text {
writing-mode: tb-rl;
}
<table>
<tbody>
<tr>
<td class="vertical-text" >V text</td>
</tr>
</tbody>
</table>
UPDATE
writing-mode
属性 在 supported css properties 中丢失。有什么解决方法吗?