在网页中插入视频比较常用,所以说几个比较常用的插入方式

插入B站视频

给主题添加自定义样式:将以下代码添加到主题的自定义CSS里(Handsome主题在:控制台--外观--设置外观--开发者设置--自定义CSS,复制到框中即可,其他主题找到合适的位置放置,如果实在找不到,可以使用插件CustomCssAndJs (自定义CSS文件和JS文件。 在header,和footer分别加入自定义的css和js。))

/*视频挂载*/


.iframe_video {
    position: relative;
    width: 100%;
}

@media only screen and (max-width: 767px) {
    .iframe_video {
        height: 15em;
    }
}

@media only screen and (min-width: 768px) and (max-width: 991px) {
    .iframe_video {
        height: 20em;
    }
}

@media only screen and (min-width: 992px) and (max-width: 1199px) {
    .iframe_video {
        height: 30em;
    }
}

@media only screen and (min-width: 1200px) {
    .iframe_video {
        height: 40em;
    }
}

.iframe_cross {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 75%
}

.iframe_cross iframe {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0
}

然后复制视频源代码:打开B站视频网页,如图找到嵌入代码然后复制(但似乎B站的番剧动漫没有这个代码,大概率是因为开了好多插件,把b站的插件关了就有了,如果还没有,就另想办法喽)
嵌入代码

<iframe src="//player.bilibili.com/player.html?aid=77934020&bvid=BV11J411q7Fa&cid=133332790&page=1" scrolling="no" border="0" frameborder="no" framespacing="0" allowfullscreen="true"> </iframe>

哪里需要视频就把代码放在哪里,把代码修改一下,即在给iframe 这个标签添加 class="iframe_video" 位置如下:

<iframe class="iframe_video" src="//player.bilibili.com/player.html?aid=77934020&bvid=BV11J411q7Fa&cid=133332790&page=1" scrolling="no" border="0" frameborder="no" framespacing="0" allowfullscreen="true"> </iframe>

然后就好了

效果如下:

其实如果直接插入B站给出的“嵌入链接”的话,也不是不行,就是大小需要自己控制
控制大小的方法的代码如下:

<iframe frameborder="0" width="100%" height="498" src="//player.bilibili.com/player.html?aid=77934020&bvid=BV11J411q7Fa&cid=133332790&page=1 allowfullscreen></iframe>

就是设置一下宽度等