打开/关闭搜索
搜索
打开/关闭菜单
43
1,113
4
9,243
LCD wiki
导航
首页
最近更改
帮助
特殊页面
上传文件
站点
English Site
中文站点
notifications
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。
user-interface-preferences
个人工具
登录
查看“Template:StyledHeader”的源代码
模板页面
更多操作
←
Template:StyledHeader
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
<noinclude> == 参数说明 == * text: 要显示的标题文本。 * color: 标题文字颜色(如 red、blue),默认为 black。 * bgcolor: 标题背景颜色(如 yellow、lightgray),默认为透明。 * header: 设置标题标签(如 h1、h2、h3),默认为 h1。 * border-left: 左侧边框的宽度(如 2px),默认为 0。 * border-bottom: 下划线的粗细(如 1px),默认为 0,若未设置则无下划线。 == 用法 == <pre><nowiki> {{StyledHeader | text = 显示一个简单的黑色标题,背景透明,没有边框和下划线 }} {{StyledHeader | text = 有浅蓝色背景和深蓝色文字,仍使用默认的 h1 标签 | bgcolor = lightblue | color = darkblue }} {{StyledHeader | text = 使用 h2 标签显示绿色标题,背景透明, 和2px粗的下划线。 | header = h2 | color = green | border-bottom = 2px }} {{StyledHeader | text = 有黄色背景、黑色文字、5px 宽的左侧边框和2px粗的下划线。 | bgcolor = yellow | color = black | border-left = 5px | border-bottom = 2px }} {{StyledHeader | text = 用 h3 标签,具有灰色背景、深灰色文字、10px 宽的左边框。 | header = h3 | bgcolor = #f0f0f0 | color = #333 | border-left = 10px }} </nowiki></pre> == 效果展示 == {{StyledHeader | text = 显示一个简单的黑色标题,背景透明,没有边框和下划线 }} {{StyledHeader | text = 有浅蓝色背景和深蓝色文字,仍使用默认的 h1 标签 | bgcolor = lightblue | color = darkblue }} {{StyledHeader | text = 使用 h2 标签显示绿色标题,背景透明, 和2px粗的下划线。 | header = h2 | color = green | border-bottom = 2px }} {{StyledHeader | text = 有黄色背景、黑色文字、5px 宽的左侧边框和2px粗的下划线。 | bgcolor = yellow | color = black | border-left = 5px | border-bottom = 2px }} {{StyledHeader | text = 用 h3 标签,具有灰色背景、深灰色文字、10px 宽的左边框。 | header = h3 | bgcolor = #f0f0f0 | color = #333 | border-left = 10px }} </noinclude> <includeonly><onlyinclude>{{#invoke:StyledHeader|customStyles}}</onlyinclude></includeonly>
该页面使用的模板:
Template:StyledHeader
(
查看源代码
)
Module:StyledHeader
(
查看源代码
)
返回
Template:StyledHeader
。