【笔记】文章笔记


太久没写东西了,好多东西都忘了,整个文章记一下吧,用到啥就记啥

  • 提示块

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{% note default %}
default 提示块标签
{% endnote %}

{% note primary no-icon %} //可使用语法 no-icon去掉小图标
primary 提示块标签
{% endnote %}

{% note success %}
success 提示块标签
{% endnote %}

{% note info %}
info 提示块标签
{% endnote %}

{% note warning %}
warning 提示块标签
{% endnote %}

{% note danger %}
danger 提示块标签
{% endnote %}

预览

default 提示块标签

//可使用语法 no-icon去掉小图标
primary 提示块标签

success 提示块标签

info 提示块标签

warning 提示块标签

danger 提示块标签

侧边留言栏

1
2
3
4
5
侧边留言栏 CboxReady -->
<!-- <script>
window['CboxReady'] = function (Cbox) {
Cbox('button', '3-3540514-f9zqln');}
</script><script src="https://static.cbox.ws/embed/2.js" async></script>

文章内嵌入网页

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<script>
function setIframeHeight() {
const iframe = document.getElementById('iframeid');
if (!iframe) return;
try {
const h = iframe.contentDocument?.body.scrollHeight || iframe.contentWindow.document.body.scrollHeight;
iframe.style.height = (h + 50) + 'px';
} catch (e) {
console.log('iframe 自适应失败', e);
iframe.style.height = '1000px';
}
}
</script>
<!-- 插入页面 -->
<iframe
id="iframeid"
src="https://game.e-lise.top"
width="100%"
height="0"
frameborder="0"
scrolling="no"
onload="setIframeHeight()"
style="border-radius:8px; background:#fff;">
</iframe>

预览

点击预览


【笔记】文章笔记
http://e-lise.top/2026/04/15/参数使用笔记/
作者
Elise
发布于
2026年4月15日
许可协议