css - 响应式填充问题

标签 css responsive-design width media-queries padding

我为教程设计了一个响应式网页,但遇到了不必要的填充问题。

http://zinzinzibidi.com/res

在此页面中,当您降低浏览器窗口分辨率时,您会在某些分辨率下看到水平滚动条 (overflow-x)。我正在尝试了解,但我几天无法解决这个问题。

这是我的麻烦的示例图片:

enter image description here

我的 CSS 代码在这里:http://zinzinzibidi.com/Areas/res/Content/css/style.css

我的媒体屏幕代码是

My CSS codes

我做错了什么?

最佳答案

问题似乎是由内部元素引起的。从#header-main-buffer 中删除填充,它应该会消失。

您文件的第 515 行:

#header-main-buffer {
    width: 300px;
    padding: 0 10px; <- this is your problem. remove it and it will be fixed
    ...

关于css - 响应式填充问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25574567/

相关文章:

CSS问题,错位,100%不是100%?

html - 网站比没有水平滚动条的浏览器更宽

html - ASP.NET 表单输入 - 宽度意外行为(未扩展 100%)

css - Bootstrap 行流体不起作用

html - 使用 iframe 填充整个剩余屏幕制作表格行

html - 使用响应式设计的图像不显示在 IE 中

javascript - 如何在响应式设计中从 Facebook 页面插件中 Conceal "timeline"?

php - 无法将 css 加载到我在 CodeIgniter 中的 View 中

css:将 float div 的高度设置为其带边距高度的最大值

html - 将 url 图片放在黑色背景颜色 html/css 之上