目录

iframe嵌入BiliBili视频方法B站视频外链

目录
警告
本文最后更新于 2022-07-01,文中内容可能已过时。

地址参数

1
2
&high_quality=1 (1=最高画质 0=最低画质)
&danmaku=0 (1=打开弹幕 0=关闭弹幕)

iframe 参数

1
2
allowfullscreen="true" # 移动端全屏
sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts" # 禁止弹出网页
属性描述
alignleft right top middle bottom不赞成使用。请使用样式代替。规定如何根据周围的元素来对齐此框架。
frameborder10规定是否显示框架周围的边框。
heightpixels%规定 iframe 的高度。
longdescURL规定一个页面,该页面包含了有关 iframe 的较长描述。
marginheightpixels定义 iframe 的顶部和底部的边距。
marginwidthpixels定义 iframe 的左侧和右侧的边距。
nameframe_name规定 iframe 的名称。
scrollingyes no auto规定是否在 iframe 中显示滚动条。
seamlessseamless规定iframe看上去像是包含文档的一部分。
srcURL规定在 iframe 中显示的文档的 URL。
srcdocHTML_code规定在iframe 中显示的页面的 HTML 内容。
widthpixels%定义 iframe 的宽度。

参考链接:iframe嵌入BiliBili视频方法B站视频外链