模板: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[編輯]