如何在 twentysixteen 主题中删除像背景一样的框架:
我有一个主题为 twentysixteen 的 wordpress 博客。最近我试图改变背景颜色,但不能如我所愿。 我查看了 css 文件,但找不到它的代码。 更改正文背景会更改边框颜色,但我不希望背景像边框一样。我怎样才能让它成为一个正常的背景? 也许有人可以帮助我?
最佳答案
添加这个CSS:
body:before,
body:after {
display: none;
}
.site {
margin: 0 !important;
}
或者(干净的解决方案)在 style.css 中找到它并将其删除:
@media screen and (min-width: 44.375em) {
body:not(.custom-background-image):before,
body:not(.custom-background-image):after {
background: inherit;
content: "";
display: block;
height: 21px;
left: 0;
position: fixed;
width: 100%;
z-index: 99;
}
@media screen and (min-width: 44.375em) {
.site {
margin: 21px;
}
}
关于css - 如何删除二十十六主题中的背景框,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41181319/