Template:Clear both/doc

维基教科书,自由的教学读本
跳到导航 跳到搜索


This template adds <div style="clear:both;"></div>; for technical XHTML details, see Template talk:Clear.

{{Clear}}: Makes content wait until existing content is completed in all columns. Often used to stop text from flowing next to unrelated images.

Usage[编辑]

Template:Nosubst

{{Clear}}
{{Clear|left}}
{{Clear|right}}

Example without the {{Clear}} template[编辑]

HeidelbergTun.jpg

園少治?車始口老、家紅之在會身展麗源以斯,引出嗎?提營智唱的沒我以表;人書道;有車證類種樣家還上?得都深展子海高顯者特引功生果帶!小文友在麼劇經全寫不、常日準照,一才驗能會的是後性算造人力何看如至間政以了?都的法資,火們裡有發家不去司的她的度人型國策。

New section without template[编辑]

See how this section starts at the right of the image?

Example with the {{Clear}} template[编辑]

HeidelbergTun.jpg

園少治?車始口老、家紅之在會身展麗源以斯,引出嗎?提營智唱的沒我以表;人書道;有車證類種樣家還上?得都深展子海高顯者特引功生果帶!小文友在麼劇經全寫不、常日準照,一才驗能會的是後性算造人力何看如至間政以了?都的法資,火們裡有發家不去司的她的度人型國策。 {{clear}}

New section with template[编辑]

See how this section appears below the image?

TemplateData[编辑]

这是用于新版可视化编辑器及其他工具的模板数据文档。

Clear both模板数据

Makes content wait until existing content is completed in all columns. Often used to stop text from flowing next to unrelated images, so text will appear on a full width line under the image.

模板参数

参数说明类型状态
side1

can be 'right' or 'left' so content is delayed until just the right or left column is complete. The default clears both columns.

字符串可选

See also[编辑]