2012-01-31 55 views
1

我試圖改變匯合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到細胞(根據本link),但在匯合3.5這不是工作,在我的情況。有人能幫助我解決這個小問題嗎?

+1

+1張貼的鏈接和問題; ) – 2012-04-26 09:21:41

+0

Thanx,Yordan ^)) – 2012-05-04 08:20:11

+0

http://ysgitdiary.blogspot.com/2012/05/how-to-convert-csv-to-confluence-wiki.html – 2012-05-06 15:25:37

回答

1

使用表加上宏,如在your link

{表加描述:寬度= 100%| columnAttributes =風格=寬度:33%,風格=寬度:33%,風格=寬度:33% }

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} 

這將產生: enter image description here

+1

你能格式化它嗎? – Linger 2012-10-08 18:46:26