我使用卡片/甲板宏,但在设置列宽时遇到问题。例如我有这个代码:
{card}
||Test|data|
||Result|data|
{card}
如果我以这种方式使用此宏,则左列的宽度是其中最长的单词,但是如果我像这样中断行(左列中的逻辑除法属性需要它):
{card}
||Test|data|
||Result|data|
{card}
这看起来像两个具有不同列宽的块。
我认为卡片中有一个属性,例如宽度或其他,但我不确切知道。
我使用卡片/甲板宏,但在设置列宽时遇到问题。例如我有这个代码:
{card}
||Test|data|
||Result|data|
{card}
如果我以这种方式使用此宏,则左列的宽度是其中最长的单词,但是如果我像这样中断行(左列中的逻辑除法属性需要它):
{card}
||Test|data|
||Result|data|
{card}
这看起来像两个具有不同列宽的块。
我认为卡片中有一个属性,例如宽度或其他,但我不确切知道。
最好的方法是在标签之间的 wiki 标记中添加 CSS {html}{html}
。confluence table 中有两个类 .confluenceTh 和 .confluenceTd,分别用于 header 和 cell。看起来像:
{html}
<style type="text/css">
.confluenceTh{
width:300px;
}
.confluenceTd{
width:300px;
}
</style>
{html}
一种选择是控制表的列大小,[{table-plus}][1]
其中有一个width
选项。
{card:label=mycard}
{table-plus:columnAttributes=style=width:300px, style=width:300px}
||Head1|D1|
||Head2|D2|
{table-plus}
{card}