「Template:提示/doc」:修訂間差異
無編輯摘要 |
無編輯摘要 |
||
行 15: | 行 15: | ||
| style || style || 全部框的样式 | | style || style || 全部框的样式 | ||
|- | |- | ||
| | | 内容style || 内容style || 文字的样式 | ||
|} | |} | ||
== 内置的固定样式模板 == | == 内置的固定样式模板 == | ||
行 23: | 行 23: | ||
|- | |- | ||
| 颜色 | | 颜色 | ||
| {{ 提示 | | | {{ 提示 | 内容 = blue | style = width: auto; float: left; margin: 4px; | template = blue }} | ||
{{ 提示 | | {{ 提示 | 内容 = green | style = width: auto; float: left; margin: 4px; | template = green }} | ||
{{ 提示 | | {{ 提示 | 内容 = orange | style = width: auto; float: left; margin: 4px; | template = orange }} | ||
{{ 提示 | | {{ 提示 | 内容 = yellow | style = width: auto; float: left; margin: 4px; | template = yellow }} | ||
{{ 提示 | | {{ 提示 | 内容 = red | style = width: auto; float: left; margin: 4px; | template = red }} | ||
{{ 提示 | | {{ 提示 | 内容 = purple | style = width: auto; float: left; margin: 4px; | template = purple }} | ||
{{ 提示 | | {{ 提示 | 内容 = indigo | style = width: auto; float: left; margin: 4px; | template = indigo }} | ||
|- | |- | ||
| 带状 | | 带状 | ||
| {{ 提示 | | | {{ 提示 | 内容 = band | style = width: auto; float: left; margin: 4px; | template = band }} | ||
{{ 提示 | | {{ 提示 | 内容 = band-blue | style = width: auto; float: left; margin: 4px; | template = band-blue }} | ||
{{ 提示 | | {{ 提示 | 内容 = band-green | style = width: auto; float: left; margin: 4px; | template = band-green }} | ||
{{ 提示 | | {{ 提示 | 内容 = band-orange | style = width: auto; float: left; margin: 4px; | template = band-orange }} | ||
{{ 提示 | | {{ 提示 | 内容 = band-yellow | style = width: auto; float: left; margin: 4px; | template = band-yellow }} | ||
{{ 提示 | | {{ 提示 | 内容 = band-red | style = width: auto; float: left; margin: 4px; | template = band-red }} | ||
{{ 提示 | | {{ 提示 | 内容 = band-purple | style = width: auto; float: left; margin: 4px; | template = band-purple }} | ||
{{ 提示 | | {{ 提示 | 内容 = band-indigo | style = width: auto; float: left; margin: 4px; | template = band-indigo }} | ||
|} | |} | ||
== 常用自定义css样式 == | == 常用自定义css样式 == | ||
行 48: | 行 48: | ||
| 圆角 | | 圆角 | ||
| <code>border-radius: 8px;</code> | | <code>border-radius: 8px;</code> | ||
| {{ 提示 | | | {{ 提示 | 内容 = 圆角 | style = width: 160px; margin: 4px; border-radius: 8px;}} | ||
| 修改数字可调整圆角大小 | | 修改数字可调整圆角大小 | ||
|- | |- | ||
| 宽度 | | 宽度 | ||
| <code>width: 320px;</code> | | <code>width: 320px;</code> | ||
| {{ 提示 | | | {{ 提示 | 内容 = 宽度 | style = width: 320px; margin: 4px; }} | ||
| 修改数字可调整宽度,也可使用80%百分比以指定相对父元素的宽度占比,或使用auto以自适应内容宽度 | | 修改数字可调整宽度,也可使用80%百分比以指定相对父元素的宽度占比,或使用auto以自适应内容宽度 | ||
|- | |- | ||
| 背景颜色 | | 背景颜色 | ||
| <code>background-color: #66ccff;</code> | | <code>background-color: #66ccff;</code> | ||
| {{ 提示 | | | {{ 提示 | 内容 = 背景颜色 | style = width: 160px; margin: 4px; background-color: #66ccff; }} | ||
| 使用颜色名称,16进制颜色值,也可使用类似 rgba(0,0,0,0.1) 以调整背景透明度 | | 使用颜色名称,16进制颜色值,也可使用类似 rgba(0,0,0,0.1) 以调整背景透明度 | ||
|- | |- | ||
| 边框样式 | | 边框样式 | ||
| <code>border: 3px solid #ec870e;</code> | | <code>border: 3px solid #ec870e;</code> | ||
| {{ 提示 | | | {{ 提示 | 内容 = 边框样式 | style = width: 160px; margin: 4px; border: 3px solid #ec870e; }} | ||
| 三个参数分别为边框宽度,边框线形和边框颜色 | | 三个参数分别为边框宽度,边框线形和边框颜色 | ||
|} | |} |
於 2020年8月29日 (六) 14:43 的修訂
本模板是通常而言對於自定義內容提示框使用的模板,由模板:Ombox實現。
參數
參數 | 填寫 | 效果 |
---|---|---|
內容/第一個參數 | 內容 | 提示框的內容 |
圖片 | 文件連結 或 none | 修改或刪除圖片顯示 |
縮小 | left | 把提示框縮小置左 |
class | class | class |
style | style | 全部框的樣式 |
內容style | 內容style | 文字的樣式 |
內置的固定樣式模板
類型 | 效果及模板名 | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
顏色 |
| ||||||||||||||||
帶狀 |
|
常用自定義css樣式
樣式名 | 代碼 | 實際效果 | 說明 | ||
---|---|---|---|---|---|
圓角 | border-radius: 8px;
|
|
修改數字可調整圓角大小 | ||
寬度 | width: 320px;
|
|
修改數字可調整寬度,也可使用80%百分比以指定相對父元素的寬度占比,或使用auto以自適應內容寬度 | ||
背景顏色 | background-color: #66ccff;
|
|
使用顏色名稱,16進位顏色值,也可使用類似 rgba(0,0,0,0.1) 以調整背景透明度 | ||
邊框樣式 | border: 3px solid #ec870e;
|
|
三個參數分別為邊框寬度,邊框線形和邊框顏色 |