模板:模板样式:修订间差异
来自「荏苒之境」
无编辑摘要 |
无编辑摘要 |
||
第2行: | 第2行: | ||
{{可隐藏/标准块 | {{可隐藏/标准块 | ||
| 标题 = 此模板使用的样式:[[{{trim | {{{1|}}}}}]] | | 标题 = 此模板使用的样式:[[{{trim | {{{1|}}}}}]] | ||
| 内容样式 = padding: | | 内容样式 = padding: 0 !important; margin-bottom: -1em | ||
}} | }} | ||
{{#ifexist:{{{1|}}} | {{#ifexist:{{{1|}}} | ||
| {{#tag:syntaxhighlight|{{safesubst:{{{1}}}}}|lang=css}} | | {{#tag:syntaxhighlight|{{safesubst:{{{1}}}}}|lang=css|style=margin: 0}} | ||
| <p class="error">样式不存在!</p> | | <p class="error">样式不存在!</p> | ||
}} | }} |
2025年8月8日 (五) 07:53的版本
此模板使用的样式:模板:模板样式/style.css
.template-style-view {
margin-bottom: 15px;
}
.template-style-view .mw-highlight {
margin: 0;
}
.template-style-view .mw-highlight pre {
margin: 0;
border: 0px;
}
示例代码:
{{模板样式
| 模板:模板样式/style.css
}}