跳转到内容

Template:C

来自 Arch Linux 中文维基

Template to center the text inside table cell. The template was copied from Wikipedia:Template:Center.

注意:If most table cells should be centered, do not wrap every cell with this template and instead add style="text-align: center;" after the table class (you can then left align cells using Template:L).

See also Help:Template#Table cell templates.

Usage[编辑源代码]

{| class="wikitable"
|-
! Long title text 1 !! Long title text 2 !! Long title text 3
|-
| rowspan="2" {{C|Centered}} || colspan="2" {{C|Centered}}
|-
| {{C|Centered}} || Regular
|}

Example[编辑源代码]

Long title text 1 Long title text 2 Long title text 3
Centered Centered
Centered Regular