Skip to content

Latest commit

 

History

History
68 lines (54 loc) · 1.64 KB

index.zh-hans.md

File metadata and controls

68 lines (54 loc) · 1.64 KB
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
vendor name
bs
window
模块
Inline Frame
frame
iframe
HB

该模块提供了一个通用的 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 显示/隐藏全屏按钮。

例子

OpenStreetMap

{{< hb/iframe src="https://www.openstreetmap.org/export/embed.html?bbox=111.34643554687501%2C22.09072990148906%2C114.97192382812501%2C24.397133017391052&amp;layer=mapnik" fullscreen=true

}}

Game

{{< 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

}}