模板:SideBox
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:
- clear: left, right, both
- font-size: http://www.w3.org/TR/CSS21/fonts.html#font-size-props
- text-align: http://www.w3.org/TR/CSS21/text.html#alignment-prop (default: center)
- bgcolor: (background-color) http://www.w3.org/TR/CSS21/colors.html#background
- width: http://www.w3.org/TR/CSS21/visudet.html#the-width-property (default: 250px)
- min-width: http://www.w3.org/TR/CSS21/visudet.html#min-max-widths (default: 200px, only meaningful if width is specified in %)
- float: right or left (default: right)
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).