|
|
| 第1行: |
第1行: |
| <noinclude>{{Documentation}}</noinclude><includeonly><div class="wiki-codepen">{{leftrightflex| | | <noinclude>{{Documentation}}</noinclude> |
| {{#tag:tabs|
| | <includeonly><div class="wiki-codepen">{{#tag:html|{{#tag:syntaxhighlight|const kangkangkang=1}}}}</div></includeonly> |
| {{#if:{{{html|}}}|
| |
| {{#tag:tab|{{{html|}}}|name=html}}|}}
| |
| {{#if:{{{style|}}}|
| |
| {{#tag:tab|{{{style|}}}|name=style}}|}}
| |
| {{#if:{{{script|}}}|
| |
| {{#tag:tab|{{{script|}}}|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>
| |
这个文档嵌入自模板:Codepen/doc
。
Usage
设置高度大于100,小于500
{{codepen
|id=uuid
|height=400
|html=<div></div>
|style=div {
display: block;
}
|script=var a=1;
}}
Example
'"`UNIQ--syntaxhighlightinner-00000002-QINU`"'