Template:Tipbox/doc:修订间差异

添加1,079字节 、​ 2020年8月28日 (星期五)
→‎top:​clean up, replaced: <noinclude></noinclude> → <noinclude>分类:模板说明</noinclude>
无编辑摘要
→‎top:​clean up, replaced: <noinclude></noinclude> → <noinclude>分类:模板说明</noinclude>
 
(未显示5个用户的5个中间版本)
第35行: 第35行:
{{ tipbox | content = yellow | style = width: auto; float: left; margin: 4px; | template = yellow }}
{{ tipbox | content = yellow | style = width: auto; float: left; margin: 4px; | template = yellow }}
{{ tipbox | content = red | style = width: auto; float: left; margin: 4px; | template = red }}
{{ tipbox | content = red | style = width: auto; float: left; margin: 4px; | template = red }}
{{ tipbox | content = purple | style = width: auto; float: left; margin: 4px; | template = purple }}
{{ tipbox | content = indigo | style = width: auto; float: left; margin: 4px; | template = indigo }}
|-
| 带状
| {{ tipbox | content = band | style = width: auto; float: left; margin: 4px; | template = band }}
{{ tipbox | content = band-blue | style = width: auto; float: left; margin: 4px; | template = band-blue }}
{{ tipbox | content = band-green | style = width: auto; float: left; margin: 4px; | template = band-green }}
{{ tipbox | content = band-orange | style = width: auto; float: left; margin: 4px; | template = band-orange }}
{{ tipbox | content = band-yellow | style = width: auto; float: left; margin: 4px; | template = band-yellow }}
{{ tipbox | content = band-red | style = width: auto; float: left; margin: 4px; | template = band-red }}
{{ tipbox | content = band-purple | style = width: auto; float: left; margin: 4px; | template = band-purple }}
{{ tipbox | content = band-indigo | style = width: auto; float: left; margin: 4px; | template = band-indigo }}
|}
|}
 常用自定义css样式如下。
 常用自定义css样式如下。
第48行: 第60行:
| 宽度
| 宽度
| <code>width: 320px;</code> 
| <code>width: 320px;</code> 
| {{ tipbox | content =  背景颜色 | style = width: 320px; margin: 4px; }}
| {{ tipbox | content =  宽度 | style = width: 320px; margin: 4px; }}
| 修改数字可调整宽度,也可使用80%百分比以指定相对父元素的宽度占比,或使用auto以自适应内容宽度
| 修改数字可调整宽度,也可使用80%百分比以指定相对父元素的宽度占比,或使用auto以自适应内容宽度
|-
|-
| 背景颜色
| 背景颜色
| <code>background-color: #66ccff;</code> 
| <code>background-color: #66ccff;</code> 
| {{ tipbox | content =  宽度 | style = width: 160px; margin: 4px; background-color: #66ccff; }}
| {{ tipbox | content =  背景颜色 | style = width: 160px; margin: 4px; background-color: #66ccff; }}
| 使用颜色名称,16进制颜色值,也可使用类似 rgba(0,0,0,0.1) 以调整背景透明度
| 使用颜色名称,16进制颜色值,也可使用类似 rgba(0,0,0,0.1) 以调整背景透明度
|-
|-
第61行: 第73行:
| 三个参数分别为边框宽度,边框线形和边框颜色
| 三个参数分别为边框宽度,边框线形和边框颜色
|}
|}
 更多样式请参考[https://www.w3school.com.cn/cssref/index.asp css样式手册]
 更多样式请参考 [https://www.w3school.com.cn/cssref/index.asp css样式手册]
<noinclude>[[分类:模板说明]]</noinclude>
<noinclude>[[分类:模板说明]]</noinclude>
3,443

个编辑