hexo博客插入音频、视频

瞎折腾了一波,这下知道了如何插入音频和视频了。

网易云音乐:

<iframe frameborder="no" border="0" marginwidth="0" marginheight="0" width=430 height=86 src="//music.163.com/outchain/player?type=2&id=114389&auto=0&height=66"></iframe>

B站视频只适配于电脑端:

<iframe id=sbrxp src="//player.bilibili.com/player.html?aid=37399076&bvid=BV1Vt411Q78x&cid=65733298&page=1" scrolling="no" border="0" frameborder="no" framespacing="0" allowfullscreen="true" style="width: 640px; height: 430px; max-width: 100%"> </iframe>

B站视频适配于移动端和电脑端:

<div style="position: relative; width: 100%; height: 0; padding-bottom: 75%;"><iframe 
src="//player.bilibili.com/player.html?aid=39807850&cid=69927212&page=1" scrolling="no" border="0" 
frameborder="no" framespacing="0" allowfullscreen="true" style="position: absolute; width: 100%; 
height: 100%; left: 0; top: 0;"> </iframe></div>

B站视频适配于移动端和电脑端:

<iframe id="spkj" src="https://player.bilibili.com/player.html?aid=39807850&page=1" scrolling="no" border="0" frameborder="no" framespacing="0" allowfullscreen="true" width=100%> </iframe>
<script type="text/javascript">  
document.getElementById("spkj").style.height=document.getElementById("spkj").scrollWidth*0.76+"px";
</script>

音乐直链:

<audio src="https://sharefs.yun.kugou.com/202004081309/e6ecd0a8c8e8f46864deac53bc22d2bd/G209/M0A/1A/0B/EQ4DAF6IMG6ANQ4cADO8tHkl4_s235.mp3" controls="controls"></audio>

赞赏