来自魔法纪录中文Wiki
跳转至: 导航 搜索

说明

源代码中,插入本模板可以使其以上和以下的内容分开显示,它常用于避免文字出现在无关的图像旁边。

用法

  • 直接使用:{{Clear}}
  • 仅考虑左侧,忽略右侧浮动:{{Clear|left}}
  • 仅考虑右侧,忽略左侧浮动:{{Clear|right}}

示例

不使用clear

源代码:
==== 段落1 ====
[[文件:环伊吕波1星.png|thumb]]
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

==== 段落2 ====
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
效果:

段落1

环伊吕波1星.png

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

段落2

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

使用clear

源代码:
==== 段落1 ====
[[文件:环伊吕波1星.png|thumb]]
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
{{Clear}}

==== 段落2 ====
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
效果:

段落1

环伊吕波1星.png

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

段落2

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------