.tabber {
display: inline-block;
}
.tabbernav {
border-bottom: none !important;
}
.tabbertab {
border-radius: 4px;
background: rgba(248, 248, 248, 0.4) !important;
border: 1px solid #ccc !important;
}
.tabbernav li a:link {
border-radius: 4px 4px 0 0;
background: #63b8ff !important;
color: #f8f8f8 !important;
}
.tabbernav li a:visited {
background: #63b8ff !important;
color: #f8f8f8 !important;
}
.tabbernav li a:hover {
background: #1c86ee !important;
color: #f8f8f8 !important;
}
.tabbernav li.tabberactive a:link {
color: #0645ad !important;
background-color: #f8f8f8 !important;
border: 1px solid #ccc !important;
border-bottom: 1px solid #f8f8f8 !important;
}
.tabbernav li.tabberactive a:visited {
color: #0645ad !important;
background-color: #f8f8f8 !important;
border: 1px solid #ccc !important;
border-bottom: 1px solid #f8f8f8 !important;
}
.tabbernav li.tabberactive a:hover {
color: #0645ad !important;
background-color: #f8f8f8 !important;
border: 1px solid #ccc !important;
border-bottom: 1px solid #f8f8f8 !important;
}
0。no时默认值为yes。其余请参考原文档。
本模板默认为{{Tabs}}的自定义主题版本。
部分信息模板有增设加入Tabs的位置,查询有增设的信息模板见:Special:链入页面,关于其具体调度方法,请查看对应的说明文档。
| 参数名 | 简介 |
|---|---|
| Theme | 内置主题样式:
|
| style | 应用于外层的额外CSS样式; |
| DefaultTab | 指定页面加载时显示第几个tab,默认值为1;
|
| LabelPadding | 指定label的内边距,默认值为2px;
|
| LabelBorderColor | 指定选中的label的侧边框颜色,默认值为#aaa;
|
| LabelBackgroundColor | 指定选中的label的背景色,默认值为页面正文背景色; |
| LabelColor | 指定选中的label的顶边框颜色,默认值为green;
|
| TextBorderColor | 指定显示的text的边框颜色,默认值为#aaa;
|
| TextBackgroundColor | 指定显示的text的背景色,默认值为white;
|
| TextPadding | 指定显示的text的内边距,默认值为20px 30px;
|
| AutoWidth | 使tabs不再占满整行,如要启用必须传入【yes】值,默认值为no;
|
| Float | 使tabs不再占满整行的同时作左浮动或右浮动,如要启用必须传入【left】(左浮动)或【right】(右浮动)值,默认值为no;
|
| LabelSide | 指定标签位置与标签顶边框位置(侧边框位置为顶边框两侧),可选值为top(默认值)、bottom、left、right;
|
| LabelColorSideReverse | 指定是否逆向设置标签顶边框位置(例如当标签位置在左侧left时标签顶边框在右侧,此时原位置也会被视为侧边框),值为1、on、yes、true时启用;
|
| DividerSize | 指定label与text的间隔,只接受正数,单位为px,默认值为0(LabelColorSideReverse不为真值)、2(LabelColorSideReverse为真值)。
|
| label[序号] | 第[序号]个标签的标注。序号请使用从1开始的连续编号。 |
| text[序号] | 第[序号]个标签的内容。序号请使用从1开始的连续编号。 |
{{tabs/core
|label1=Label 1
|text1=Text 1
|label2=Label 2
|text2=[[File:49755740_p0.jpg]]
|label3=Label 3
|text3={{秽翼}}
|DefaultTab=2
|LabelPadding=1em
|LabelBorderColor=black
|LabelColor=blue
|TextPadding=1.5em
|TextBorderColor=black
|AutoWidth=yes}}
| |||||||||||||||||||||||||||||||||
{{tabs/core
|label1=我是CC1
|text1=[[File:炎夏型乌莎哈5.png]]
|label2=WO是CC2
|text2=[[File:炎夏型乌莎哈6.png]]
|label3=wo's cc3
|text3=[[File:炎夏型乌莎哈5.png]]
|LabelSide=left
|LabelColorSideReverse=true
|LabelBorderColor=#3366DD
|LabelColor=#3366DD
|LabelBackgroundColor=#3366DD
|LabelPadding=0.5em
|TextBorderColor=transparent
|TextPadding=0
|AutoWidth=yes}}