Template:Tr
来自Valve Developer Community
跳转到导航
跳转到搜索

文档页面 Template:Tr/doc/zh 不存在。
模板将改为显示英文文档。如果此消息后没有任何内容,则很可能该文档甚至不存在英文版本。
模板将改为显示英文文档。如果此消息后没有任何内容,则很可能该文档甚至不存在英文版本。
A row of an HTML table with a prepared style.
Parameters and Examples
Parameter | Description | Example |
---|---|---|
{{{1}}} or {{{text}}} | Your text. | {{tr|Hello, World!}} {{tr|text = Hello, World!}} |
Attributes | ||
{{{id}}} | Element ID. Useful for linking to a specific part of the page. | {{tr|id = my_id}} [[My Sweet Page#my_id|My sweet page]] |
{{{class}}} | Custom HTML class. | {{tr|class = myClass}} |
{{{style}}} | Custom CSS (prepared styles are also planned). | {{tr|style = background-image:linear-gradient(0deg, white, black)}} |
Style | ||
{{{bgcolor}}} | Background color. | {{tr|bgcolor = rgb(255 255 255)}} |
{{{align}}} | Text alignment. | {{th|align = right}} |
{{{sticky}}} | If true is specified, it includes CSS properties that make the table row stick to the top of the screen. | {{tr|sticky = true}} |