wordpress技巧:加B站视频
无拉伸,无跳转,默认1080P
上代码:
<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?aid=929249345&bvid=BV1XK4y1Q76M&cid=298923440&page=1&as_wide=1&high_quality=1&danmaku=0” frameborder=”no” scrolling=”no” sandbox=”allow-top-navigation allow-same-origin allow-forms allow-scripts” allowfullscreen=”allowfullscreen”> </iframe></div>
只需修改期中的aid=100456428&cid=171311599&page=1为自己视频的就可以了
测试