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>

演示


吾爱博客|AYFRE.COM 版权所有,转载请标明出处
吾爱博客 » WordPress将A站与B站视频插入到文章中

发表评论

吾爱博客|AYFRE.COM