typecho关闭评论功能及文章挂载视频
- comments.php里清空所有代码
- sidebar.php删除21行开始的最近回复代码区块,评论RSS代码模块
- archive.php删除<li><?php $this->commentsNum('暂无评论', '%d 条评论'); ?></li>
/视频挂载/
.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
}
修改代码:复制嵌入代码到文章需要放置的位置。然后在给iframe 这个标签添加 class="iframe_video"
本作品采用 知识共享署名-相同方式共享 4.0 国际许可协议 进行许可。