css - 页面顶部的空白区域(有时)

标签 css wordpress responsive

我的网站上有一个我无法解决的问题。有时在标题/导航和内容之间的顶部有一个空白区域。重新加载页面后它会消失。

这发生在台式机和移动设备上。

我的网站是 www.timschuermann.com/dev/

最佳答案

在你的 css 中尝试将 body margin 和 padding 设置为 0

正文{ margin :0; 填充:0; }

关于css - 页面顶部的空白区域(有时),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43704375/

相关文章:

PHP/mySQL - 仅检索唯一元值的查询

jquery.floatThead 顶部带有响应式 header

javascript - 使用 webgl 和 meatballs.js 的响应式 Canvas

html - 似乎 box-sizing : border-box is not working

html - 如何使一个元素跟随另一个元素的大小

html - 使用 "display:block"但无法使我的图像与文本保持在同一水平面上

javascript - 使用 css3 react 几秒钟后自动隐藏 div/flash 消息

html - Wordpress 列数排序

mysql unix_timestamp 时区时间错误

jquery - 当浏览器宽度减小时立即隐藏导航而不是显示一瞥