跳转到内容

模板:Clear/doc:修订间差异

shortcuts: {{-}} {{clr}}
来自天灾之下:危险连接资料站
bwiki>35609647
小 列表替换:替换 “分类:模板页的文档” 为 “分类:模板文档” 第 97/145 个
 
小 导入1个版本
 
(未显示另一用户的1个中间版本)
第1行: 第1行:
本模板会增加源代码“<nowiki><div style="clear:both;"></div></nowiki>”
{{Languages|Template:Clear/doc}}
 
{{documentation subpage}}
这会让模板之后的内容不受前面板式的影响。
<!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata -->
 
{{tsh|-|clr}}
 
Shorthand for <syntaxhighlight inline lang="html"><div style="clear: both;"></div></syntaxhighlight>.
输入 left 只会对左侧内容生效,输入 right 只会对右侧内容生效。
== TemplateData ==
<noinclude>
{{TemplateData header}}
[[分类:模板文档]]
<templatedata>
</noinclude>
{
"description": {
"en": "Clear floating block-level elements without line break.",
"pt-br": "“Limpar” elementos flutuantes em nível de bloco sem quebra de linha através do parâmetro “clear” do CSS."
},
"params": {
"1": {
"label": {
"en": "Clear",
"pt-br": "Atributo"
},
"description": {
"en": "CSS clear: left, right, both, none.",
"pt-br": "Atributos do parâmetro clear do CSS: left, right, both, none."
},
"default": "both",
"type": "string"
}
},
"format": "inline"
}
</templatedata>
<includeonly>{{Sandbox other||
<!-- Categories below this line; interwikis at Wikidata -->
[[Category:Formatting templates{{#translation:}}]]
[[Category:Typing-aid templates{{#translation:}}]]
[[Category:Utility templates{{#translation:}}]]
}}</includeonly>

2025年12月19日 (五) 23:43的最新版本

Shorthand for <div style="clear: both;"></div>.

TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools.

Clear

Clear floating block-level elements without line break.

模板参数

此模板首选参数不换行的行内格式。

参数描述类型状态
Clear1

CSS clear: left, right, both, none.

默认值
both
字符串可选