模板:Codepen:修订间差异
来自康健生活
无编辑摘要 |
无编辑摘要 |
||
| 第3行: | 第3行: | ||
|{{#tab:CSS/#1, HTML/#2, JS/#3|{{{css|}}}|{{html|}}}|{{{js|}}}}} | |{{#tab:CSS/#1, HTML/#2, JS/#3|{{{css|}}}|{{html|}}}|{{{js|}}}}} | ||
|<div class="wiki-codepen-iframe">{{{iframe|}}}</div>}}</div> | |<div class="wiki-codepen-iframe">{{{iframe|}}}</div>}}</div> | ||
{{#tag:tab|Foo|name={{{1|}}}}} | |||
{{#tab:{{{2|}}}|Bar}} | |||
|style=color:{{#if:{{{1|}}}|green|red}} }} | |||
{{#tag:tabs | {{#tag:tabs | ||
2020年2月26日 (三) 15:53的版本
这个文档嵌入自模板:Codepen/doc
。
Usage
设置高度大于100,小于500
{{codepen
|id=uuid
|height=400
|html=<div></div>
|style=div {
display: block;
}
|script=var a=1;
}}
Example
Foo
Bar
|style=color:red }}
Foo
1,2,3