WordPress将A站与B站视频插入到文章中

A站视频代码

<iframe id="spkj" src="https://www.acfun.cn/player/视频ac号" width="100%" frameborder="no" scrolling="no" allowfullscreen="allowfullscreen"><span data-mce-type="bookmark" style="display: inline-block; width: 0px; overflow: hidden; line-height: 0;" class="mce_SELRES_start"></span> <span data-mce-type="bookmark" style="display: inline-block; width: 0px; overflow: hidden; line-height: 0;" class="mce_SELRES_start"></span> </iframe> <script type="text/javascript"> document.getElementById("spkj").style.height=document.getElementById("spkj").scrollWidth*0.76+"px"; </script>

B站视频代码

<iframe id="spkj" src="https://player.bilibili.com/player.html?aid=视频AV号&amp;page=1"width="100%" frameborder="no" scrolling="no" allowfullscreen="allowfullscreen"><span data-mce-type="bookmark" style="display: inline-block; width: 0px;overflow: hidden; line-height: 0;" class="mce_SELRES_start"></span></iframe><script type="text/javascript"> document.getElementById("spkj").style.height=document.getElementById("spkj").scrollWidth*0.76+"px"; </script>

演示


温馨提示: 本文最后更新于2020-06-26,至今已有1458天,某些文章具有时效性,若有错误或已失效,请在下方留言
© 版权声明
THE END
喜欢就支持一下吧❀
点赞1投币 分享
评论 抢沙发

    请登录后查看评论内容