「Template:提示/doc」:修訂間差異
無編輯摘要 |
小 (→常用自定义css样式) |
||
(未顯示由 5 位使用者於中間所作的 9 次修訂) | |||
行 3: | 行 3: | ||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
! | ! style="position:-webkit-sticky;position:sticky;top:0px;"| 参数 !! style="position:-webkit-sticky;position:sticky;top:0px;"| 填写 !! style="position:-webkit-sticky;position:sticky;top:0px;"| 效果 !! style="position:-webkit-sticky;position:sticky;top:0px;"|选择 | ||
|- | |- | ||
| | | content/text/ 内容/第一个参数 || 内容 || 提示框的内容 || '''必填''' | ||
|- | |- | ||
| | | template || 见下固定样式模板名 || 见下固定样式模板 || 可选 | ||
|- | |- | ||
| | | style || 见下常用自定义css样式 || 提示框 的样式 || 可选 | ||
|- | |- | ||
| | | textstyle || 内容style || 内部文字的样式 || 可选 | ||
|- | |- | ||
| | | class || class || 提示 框 的class || 可选 | ||
|- | |- | ||
| | | 图片 || 文件链接 或 none || 修改或删除图片显示 || 可选 | ||
|- | |||
| 缩小 || 可选值:left || 把提示框缩小置左 || 可选 | |||
|} | |} | ||
== 内置的固定样式模板 == | == 内置的固定样式模板 == | ||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
! 类型 ! | !width=40px style="position:-webkit-sticky;position:sticky;top:0px;"| 类型 | ||
! style="position:-webkit-sticky;position:sticky;top:0px;z-index:4"| 效果及模板名 | |||
|- | |- | ||
| 颜色 | | 颜色 | ||
行 30: | 行 34: | ||
{{ 提示 | 内容 = purple | style = width: auto; float: left; margin: 4px; | template = purple }} | {{ 提示 | 内容 = purple | style = width: auto; float: left; margin: 4px; | template = purple }} | ||
{{ 提示 | 内容 = indigo | style = width: auto; float: left; margin: 4px; | template = indigo }} | {{ 提示 | 内容 = indigo | style = width: auto; float: left; margin: 4px; | template = indigo }} | ||
|} | |} | ||
== 常用自定义css样式 == | == 常用自定义css样式 == | ||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
! 样式名 !! | !width=70px style="position:-webkit-sticky;position:sticky;top:0px;"| 样式名 !! style="position:-webkit-sticky;position:sticky;top:0px;"| 代码 !! style="position:-webkit-sticky;position:sticky;top:0px;"| 实际效果 !! style="position:-webkit-sticky;position:sticky;top:0px;"| 说明 | ||
|- | |- | ||
| 圆角 | | 圆角 | ||
行 65: | 行 60: | ||
| {{ 提示 | 内容 = 边框样式 | style = width: 160px; margin: 4px; border: 3px solid #ec870e; }} | | {{ 提示 | 内容 = 边框样式 | style = width: 160px; margin: 4px; border: 3px solid #ec870e; }} | ||
| 三个参数分别为边框宽度,边框线形和边框颜色 | | 三个参数分别为边框宽度,边框线形和边框颜色 | ||
|} | |}<noinclude> | ||
[[分类:模板说明]] | |||
</noinclude> |
於 2022年2月18日 (五) 22:55 的最新修訂
本模板是通常而言對於自定義內容提示框使用的模板,由模板:Ombox實現。
參數
參數 | 填寫 | 效果 | 選擇 |
---|---|---|---|
content/text/內容/第一個參數 | 內容 | 提示框的內容 | 必填 |
template | 見下固定樣式模板名 | 見下固定樣式模板 | 可選 |
style | 見下常用自定義css樣式 | 提示框的樣式 | 可選 |
textstyle | 內容style | 內部文字的樣式 | 可選 |
class | class | 提示框的class | 可選 |
圖片 | 文件連結 或 none | 修改或刪除圖片顯示 | 可選 |
縮小 | 可選值:left | 把提示框縮小置左 | 可選 |
內置的固定樣式模板
類型 | 效果及模板名 | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
顏色 |
|
常用自定義css樣式
樣式名 | 代碼 | 實際效果 | 說明 | ||
---|---|---|---|---|---|
圓角 | border-radius: 8px;
|
|
修改數字可調整圓角大小 | ||
寬度 | width: 320px;
|
|
修改數字可調整寬度,也可使用80%百分比以指定相對父元素的寬度占比,或使用auto以自適應內容寬度 | ||
背景顏色 | background-color: #66ccff;
|
|
使用顏色名稱,16進位顏色值,也可使用類似 rgba(0,0,0,0.1) 以調整背景透明度 | ||
邊框樣式 | border: 3px solid #ec870e;
|
|
三個參數分別為邊框寬度,邊框線形和邊框顏色 |