跳转到内容

模板: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[编辑]

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

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

园少治?车始口老、家红之在会身展丽源以斯,引出吗?提营智唱的没我以表;人书道;有车证类种样家还上?得都深展子海高显者特引功生果带!小文友在么剧经全写不、常日准照,一才验能会的是后性算造人力何看如至间政以了?都的法资,火们里有发家不去司的她的度人型国策。

New section without template[编辑]

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

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

园少治?车始口老、家红之在会身展丽源以斯,引出吗?提营智唱的没我以表;人书道;有车证类种样家还上?得都深展子海高显者特引功生果带!小文友在么剧经全写不、常日准照,一才验能会的是后性算造人力何看如至间政以了?都的法资,火们里有发家不去司的她的度人型国策。 {{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[编辑]