1、在主题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}

2、文章发布时在B站嵌入代码<iframe src=变为<iframe class="iframe_video" src=

原文出处:www.icnfox.cn/archives/42.html

发表评论

正在加载 Emoji
×