Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Widget:StyledHeader: Difference between revisions

From LCD wiki
No edit summary
No edit summary
Line 38: Line 38:
     color: <!--{$color|default:"#36a5e8"}-->;
     color: <!--{$color|default:"#36a5e8"}-->;
     border-bottom: 2px solid <!--{$color|default:"#36a5e8"}-->;
     border-bottom: 2px solid <!--{$color|default:"#36a5e8"}-->;
     padding-left: 2em;
     margin-left: 2em;
}
}
</style>
</style>
</html>
</html>
</includeonly>
</includeonly>

Revision as of 15:37, 24 July 2024

功能说明

在文档中引入此模板后, 将修改默认的标题样式, 目前影响的标签有H1, H2, H4

参数说明

  • color: 文字颜色(如 red、blue),默认为 black。

用法

{{#widget:StyledHeader}}

{{#widget:StyledHeader
| color = #36a5e8
}}

效果展示

H1标题样式

H2标题样式

H4标题样式