不想用docker版的v2,所以就想直接在虚拟机里边弄openwrt,找了一圈,发现这个教程较为详细,就照着操作了一遍,最后算是成功了,但是就实际使用情况而言,去掉iKuai应该也没问题,但是已经用上了,就懒得再去改了。
ps:主题自带插入B站视频,效果不理想,就左上区域仅有一个小窗口播放,为实现大窗口,可用自定义css实现。
以本主题为例,在设置外观-开发者设置-自定义CSS
中添加如下代码:
/*视频挂载*/
.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
}
然后在需要插入的视频页面复制相应的嵌入代码
并在代码前加上如下代码即可:
class="iframe_video"
另外,视频默认自动播放,如想取消,在链接后边加上autoplay=0
即可。