type | title | linkTitle | date | draft | nav_weight | nav_icon | series | categories | tags | images | authors | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
docs |
Inline Frame 模块 |
Inline Frame |
2023-05-29 22:26:59 +0800 |
false |
1000 |
|
|
|
|
|
该模块提供了一个通用的 inline frame 短代码。
{{% hb-module iframe %}}
{{</* hb/iframe "URL" */>}}
或通过命名参数。
{{</* hb/iframe src="URL" trigger=manual */>}}
Parameter | Default | Description |
---|---|---|
src |
- | Inline frame 的 URL,必填。 |
trigger |
auto |
manual 则手动加载。 |
lazyLoading |
true |
是否启用延迟加载。 |
loadButtonText |
load |
加载按钮的文本。 |
loadInfo |
- | 显示于加载按钮下方的信息文本,支持 Markdown 语法。 |
fullscreen |
true |
显示/隐藏全屏按钮。 |
{{< hb/iframe src="https://www.openstreetmap.org/export/embed.html?bbox=111.34643554687501%2C22.09072990148906%2C114.97192382812501%2C24.397133017391052&layer=mapnik" fullscreen=true
}}
{{< hb/iframe src="https://v6p9d9t4.ssl.hwcdn.net/html/6581665/FeatherParkWeb/index.html" trigger=manual loadInfo="Please note that the iframe will load the game from other sites." lazyLoading=false
}}