- 欢迎来到偶像大师中文维基,本站仍在筹备阶段,如有兴趣参与建设可加群申请账号:542540342
Template:Popup:修订间差异
跳转到导航
跳转到搜索
创建页面,内容为“<includeonly><span class="wm-tooltips"><span>{{{1|{{Icon|mingcute:question-line|color={{{color|#FF74B7}}}|size={{{size|}}}}}}}}}</span><span style="display:none" data-size="{{{width|350}}}" data-trigger="{{{trigger|mouseenter focus}}}" {{#if:{{{interactive|}}}|data-interactive{{=}}"true"}} data-append-to="{{{append|body}}}">{{{content|}}}</span></span></includeonly><noinclude>分类:功能模板{{Documentation}}</noinclude>” |
(没有差异)
|
2025年9月3日 (三) 23:35的版本
这个模板引用自 PRTS Wiki,并可能进行了修改。感谢所有编辑们做出的贡献。 |
参数
参数 | 描述 | 默认值 |
---|---|---|
无名参数 | 想要自定义的触发文字内容 | |
size | (默认问号可用)问号的 font-size | 16px |
color | (默认问号可用)一个 css color 可接受的值用 | #FF74B7 |
content | 弹出的内容 | |
width | 弹出框的最大宽度(px) | 350 |
trigger | 触发方式 可以是 click 、focusin 、mouseenter 、focus ,多个触发方式时用空格分隔
|
mouseenter focus |
interactive | 是否允许弹出内容可以被交互,填入任意内容即可激活 |
示例
{{popup|content=这是一个问号}}
}
{{popup|content=这是一个更大的红色问号|size=20px|color=red|width=30}}
}
{{popup|'''点我'''|content=这个弹出框不会自己消失|trigger=click|interactive=true}}
点我}