模板:SideBox

来自osdev
Zhang3讨论 | 贡献2022年5月4日 (三) 02:13的版本 (创建页面,内容为“<div class="PrettyTextBox" style="float:{{{float|right}}}; clear:{{{clear|right}}}; margin:1em; min-width:{{{min-width|200px}}}; width:{{{width|250px}}}; text-align:{{{text-align|center}}}; {{#if:{{{bgcolor|}}}|background-color: {{{bgcolor}}};|}} {{#if:{{{font-size|}}}|font-size: {{{font-size}}};|}} {{#if:{{{higher|}}}|position:relative; top:-{{{higher}}};|}} {{{style|}}}">{{{1}}}</div><noinclude> The following parameters accept the same values as the HTML "st…”)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳到导航 跳到搜索
{{{1}}}

The following parameters accept the same values as the HTML "style" attribute properties with the same names.

e.g to change
float:{{{float|right}}} define '|float=left'.

Parameters:

The "style" parameter allows any other CSS attributes to be set. One of the previous parameters is preferable to using "style", as it makes the template syntax easier to read. The "higher" parameter positions the box by the given units higher than without the parameter (e.g. higher=1em).

de:Vorlage:SeitlicherKasten