方法一:看高清可以跳转B站
加上 style=”width: 100%; height: 500px; max-width: 100%;align:center; padding:20px 0;”到代码内,这里调整的是播放界面在网站中显示的大小,可以更改高度和宽度,数值只需更改height的值就可以了。
<iframe src="//player.bilibili.com/player.html?aid=897395126&bvid=BV1YA4y1R7RJ&cid=743619793&page=1" frameborder="no" scrolling="no" allowfullscreen="allowfullscreen" style="width: 100%; height: 500px; max-width: 100%;align:center; padding:20px 0;"> </iframe>
红色为添加
方法二:只能看360高清不能跳转
<iframe src="//player.bilibili.com/player.html?aid=897395126&bvid=BV1YA4y1R7RJ&cid=743619793&page=1" width="100%" height="500" scrolling="no" sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts" allowfullscreen="allowfullscreen"></iframe>
© 版权声明
文章版权归作者所有,未经允许请勿转载。