B 站插入视频 自适应页面+ 默认 1080P + 并且去掉弹幕

建站学习48

代码

首先上代码

官方代码文章源自GTA6吧-美文语录,生活常识,建站知识分享-https://igta6.com/23452.html

  1. <iframe src="//player.bilibili.com/player.html?aid=243025453&bvid=BV1pe411p7g4&cid=186718696&page=1" scrolling="no" border="0" frameborder="no" framespacing="0" allowfullscreen="true"> </iframe>

修改后:文章源自GTA6吧-美文语录,生活常识,建站知识分享-https://igta6.com/23452.html

  1. <iframe src="//player.bilibili.com/player.html?aid=243025453&bvid=BV1pe411p7g4&cid=186718696&page=1&high_quality=1&danmaku=0" allowfullscreen="allowfullscreen" width="100%" height="500" scrolling="no" frameborder="0" sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts"></iframe>

代码讲解

  1. BILIBILI 地址PC端参数 &high_quality=1 (1=最高画质 0=最低画质) &danmaku=0 (1=打开弹幕 0=关闭弹幕) iframe 参数 allowfullscreen="allowfullscreen" #移动端全屏 sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts" #禁止弹出网页

属性文章源自GTA6吧-美文语录,生活常识,建站知识分享-https://igta6.com/23452.html

文章源自GTA6吧-美文语录,生活常识,建站知识分享-https://igta6.com/23452.html

描述文章源自GTA6吧-美文语录,生活常识,建站知识分享-https://igta6.com/23452.html

align文章源自GTA6吧-美文语录,生活常识,建站知识分享-https://igta6.com/23452.html

left right top middle bottom文章源自GTA6吧-美文语录,生活常识,建站知识分享-https://igta6.com/23452.html

不赞成使用。请使用样式代替。规定如何根据周围的元素来对齐此框架。文章源自GTA6吧-美文语录,生活常识,建站知识分享-https://igta6.com/23452.html

 文章源自GTA6吧-美文语录,生活常识,建站知识分享-https://igta6.com/23452.html

 文章源自GTA6吧-美文语录,生活常识,建站知识分享-https://igta6.com/23452.html

 文章源自GTA6吧-美文语录,生活常识,建站知识分享-https://igta6.com/23452.html

frameborder文章源自GTA6吧-美文语录,生活常识,建站知识分享-https://igta6.com/23452.html

10文章源自GTA6吧-美文语录,生活常识,建站知识分享-https://igta6.com/23452.html

规定是否显示框架周围的边框。文章源自GTA6吧-美文语录,生活常识,建站知识分享-https://igta6.com/23452.html

height文章源自GTA6吧-美文语录,生活常识,建站知识分享-https://igta6.com/23452.html

pixels%文章源自GTA6吧-美文语录,生活常识,建站知识分享-https://igta6.com/23452.html

规定 iframe 的高度。文章源自GTA6吧-美文语录,生活常识,建站知识分享-https://igta6.com/23452.html

longdesc文章源自GTA6吧-美文语录,生活常识,建站知识分享-https://igta6.com/23452.html

URL文章源自GTA6吧-美文语录,生活常识,建站知识分享-https://igta6.com/23452.html

规定一个页面,该页面包含了有关iframe 的较长描述。文章源自GTA6吧-美文语录,生活常识,建站知识分享-https://igta6.com/23452.html

 

 

 

marginheight

pixels

定义 iframe的顶部和底部的边距。

 

 

 

marginwidth

pixels

定义 iframe的左侧和右侧的边距。

 

 

 

name

frame_name

规定 iframe 的名称。

sandbox

“”allow-formsallow-same-originallow-scriptsallow-top-navigation

启用一系列对 <_iframe> 中内容的额外限制。

scrolling

yesnoauto

规定是否在 iframe中显示滚动条。

 

 

 

seamless

seamless

规定 <_iframe> 看上去像是包含文档的一部分。

src

URL

规定在 iframe中显示的文档的 URL。

 

 

 

srcdoc

HTML_code

规定在 <_iframe> 中显示的页面的 HTML 内容。

width

pixels%

定义 iframe 的宽度。

 

内容来源:3斗米博客

本文来自网络,本站仅作分享交流,非商业赢利为目的。
如有侵权,请及时联系我们删除!gta-vc@foxmail.com