跳至內容

模板:Static row numbers/doc

本頁使用了標題或全文手工轉換
維基百科,自由的百科全書

給表格添加橫欄號。

例子

[編輯]

代碼:

{{static row numbers}}
{| class="wikitable sortable static-row-numbers"
|-
! rowspan="2" | 颜色
! colspan="3" | 资料
|- class="static-row-header"
! 甲 !! 乙 !! 丙
|-
| 品红 || 1 || 2 || 3
|-
| 黄 || 4 || 5 || 6
|-
| 青 || 7 || 8 || 9
|- class="sortbottom static-row-header"
| '''合计''' || 12 || 15 || 18
|- class="sortbottom static-row-header"
| '''均值''' || 4 || 5 || 6
|}

效果:

顏色 資料
甲 乙 丙
品紅 1 2 3
黃 4 5 6
青 7 8 9
合計 12 15 18
均值 4 5 6

參見

[編輯]

更多調整表格效果模板樣式: