博客园插入bilibili视频

默认的

<!--第三方:会自动播放-->
<iframe src="https://xbeibeix.com/api/bilibili/biliplayer/?url=https://www.bilibili.com/video/BV1Fz4y1f7Wc" scrolling="no" border="0" frameborder="no" framespacing="0" allowfullscreen="true"> </iframe>
<!--bilibili默认,不能最大化-->
<iframe src="//player.bilibili.com/player.html?aid=584779524&bvid=BV1Fz4y1f7Wc&cid=243145864&page=1" scrolling="no" border="0" frameborder="no" framespacing="0" allowfullscreen="true"> </iframe>

修改后的

<!---->
<div style="position: relative; padding: 30% 45%;">
<iframe style="position: absolute; width: 100%; height: 100%; left: 0; top: 0;" src="https://player.bilibili.com/player.html?cid=145147963&aid=84267566&page=1&as_wide=1&high_quality=1&danmaku=0" frameborder="no" scrolling="no"></iframe>
</div>
<!--这个会自动播放-->
<iframe src="https://xbeibeix.com/api/bilibili/biliplayer/?url=av60016166" allowfullscreen="true" width="100%" height="800" scrolling="yes" frameborder="0"></iframe>
posted @ 2020-10-11 15:43  雨中遐想  阅读(390)  评论(0编辑  收藏  举报