1

我试图在 Confluence wiki 标记中更改列宽,但我不明白为什么它不起作用。我有这样的事情:

{table-plus:columnTypes=S,-,.|autoNumber=true|sortColumn=3 
|columnAttributes=,,style="background:yellow; font-size:14pt;"} 
|| Name || Phone || TCP || 
| John | 555-1234 | 192.168.1.10 | 
| Mary | 555-2134 | 192.168.1.12 | 
| Bob | 555-4527 | 192.168.1.9 | 

{table-plus}

我知道“columnAttributes”属性将 CSS 添加到单元格(根据此链接),但在 confluence 3.5 中它不适用于我的情况。

4

2 回答 2

2

下面是设置每列宽度的语法,为便于阅读而格式化。(请记住,宏不能包含空格。):

{table-plus:columnTypes=S,-,.
 |autoNumber=true|sortColumn=3|width=100%
 |columnAttributes=
    style="background:yellow;font-size:14pt;style=width:33%",
    style="background:yellow;font-size:14pt;style=width:33%",
    style="background:yellow;font-size:14pt;style=width:33%"
}

|| Name     || Phone   || TCP         || 
| John      | 555-1234 | 192.168.1.10 | 
| Mary      | 555-2134 | 192.168.1.12 | 
| Bob       | 555-4527 | 192.168.1.9  | 

{table-plus}

这会产生: 在此处输入图像描述

于 2012-10-08T18:42:29.070 回答
1

使用 table-plus 宏,如链接中所述:

{table-plus:width=100%|columnAttributes=style=width:33%, style=width:33%, style=width:33%}
于 2012-08-30T20:53:45.920 回答