使用方法/test3:修订间差异
来自康健生活
无编辑摘要 |
|||
| (未显示同一用户的14个中间版本) | |||
| 第1行: | 第1行: | ||
== 源码格式示例 == | |||
<pre> | |||
<nowiki>{{codepen | |||
|tabs=<tabs> | |||
<tab name="css"><syntaxhighlight lang="css"> | |||
</syntaxhighlight></tab> | |||
<tab name="js"><syntaxhighlight lang="javascript"> | |||
</syntaxhighlight></tab> | |||
</tabs> | |||
|iframe=<html><iframe src=" " name="kangkk.com"></iframe></html> | |||
}}</nowiki> | |||
</pre> | |||
== 演示 == | == 演示 == | ||
{{codepen | {{codepen | ||
| | |id=test_codepen | ||
|height=400 | |||
body { | |style=body { | ||
background: black; | background: black; | ||
overflow: hidden; | overflow: hidden; | ||
margin: 0; | margin: 0; | ||
} | }|script=let diameter; | ||
let diameter; | |||
let lines = []; | let lines = []; | ||
const _noise = noise; | const _noise = noise; | ||
| 第60行: | 第70行: | ||
endShape(); | endShape(); | ||
} | } | ||
} | } | ||
}} | }} | ||
== 源码 == | == 源码 == | ||
<pre> | <pre> | ||
{{codepen | <nowiki>{{codepen | ||
|tabs=<tabs> | |tabs=<tabs> | ||
<tab name="css"><syntaxhighlight lang="css"> | <tab name="css"><syntaxhighlight lang="css"> | ||
| 第128行: | 第137行: | ||
}</syntaxhighlight></tab> | }</syntaxhighlight></tab> | ||
</tabs> | </tabs> | ||
|iframe=<html><iframe src="https://kangkk.com/iframe/hypnose/dist/index.html" name="kangkk.com"></html> | |iframe=<html><iframe src="https://kangkk.com/iframe/hypnose/dist/index.html" name="kangkk.com"></iframe></html> | ||
}} | }}</nowiki> | ||
</pre> | </pre> | ||