我在我的 wordpress 博客中找不到左边距。我的网站是用 html5 和 css3 编写的,但我的博客页面是一个集成的 wordpress 博客。我正在使用我定制的 twentytwelve 主题。
我的网站是响应式的,所以如果您缩小浏览器范围,您会发现它不会移动到桌面和移动版本,直到为时已晚几个像素。这在站点的其余部分不是问题,因此某处的某些 css 使博客无法在正确的时间准确跳转到正确的大小。
在博客的最左边。无论浏览器变得多么狭窄,都会有大约 25-35 像素的边距。这可能是我的问题,但我找不到它是什么。
我认为它可能是从#main 或 .container 类继承的边距,但它似乎不是。
这是我的博客,我的问题出在这里。 http://www.kidstart.ie/blog
有人可以帮忙吗?我没主意了!
最佳答案
你要找的样式是通过stylesplugin嵌入的,看看你网站的源码:
<!-- Styles cached and displayed inline for speed. Generated by http://stylesplugin.com -->
<style type="text/css" id="styles-plugin-css">
#searchsubmit,.styles .post-password-required input[type="submit"],#respond input#submit{background-image:none}body .site{padding-left:0;padding-right:0;max-width:74.285714285rem}#masthead,#main,#colophon{padding-left:2.857142857rem;padding-right:2.857142857rem}
</style>
这就是您正在寻找的填充 - 在您的/wp-content/themes/kidstarttheme/style.css 中使用类似的内容
@media only screen and (max-width: 739px) {
#main { padding-left: 0 !important; padding-right: 0 !important; }
}
关于html - 无法删除 wordpress css 左侧的边距,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24897381/