模板:Codepen:修订间差异
来自康健生活
无编辑摘要 标签:已被回退 |
无编辑摘要 标签:已被回退 |
||
| 第1行: | 第1行: | ||
<noinclude>{{Documentation}}</noinclude> | <noinclude>{{Documentation}}</noinclude><includeonly><div class="wiki-codepen">{{leftrightflex| | ||
<includeonly><div class="wiki-codepen">{{#tag:syntaxhighlight| | {{#tag:tabs| | ||
{{#if:{{{html|}}}| | |||
{{#tag:tab|{{#tag:syntaxhighlight|{{{html|}}}|lang=html}}|name=html}}|}} | |||
{{#if:{{{style|}}}| | |||
{{#tag:tab|{{#tag:syntaxhighlight|{{{style|}}}|lang=css}}|name=style}}|}} | |||
{{#if:{{{script|}}}| | |||
{{#tag:tab|{{#tag:syntaxhighlight|{{{script|}}}|lang=javascript}}|name=script}}|}} | |||
}} | |||
|{{#tag:html| | |||
{{#tag:iframe| | |||
{{#if:{{{html|}}}| | |||
{{{html|}}}|}} | |||
{{#if:{{{style|}}}| | |||
{{#tag:style|{{{style|}}}|type=text\/css}}|}} | |||
{{#if:{{{script|}}}| | |||
{{#tag:script|{{{script|}}}|type=text\/javascript}}|}} | |||
|class=wiki-codepen-iframe}} | |||
|class=wiki-codepen-preview}} | |||
}}</div></includeonly> | |||
2025年4月30日 (三) 08:31的版本
这个文档嵌入自模板:Codepen/doc
。
Usage
设置高度大于100,小于500
{{codepen
|id=uuid
|height=400
|html=<div></div>
|style=div {
display: block;
}
|script=var a=1;
}}