<分区>
编辑问题以包含 desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem .这将有助于其他人回答问题。
关闭 7 年前。
<分区>
编辑问题以包含 desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem .这将有助于其他人回答问题。
关闭 7 年前。
我正在为一个元素使用 October CMS,但不幸的是我遇到了问题。对于我的一个 div,我将背景设置为 100% 宽度,但是我遇到了这个问题,它下面的 div 宽度较小并且浏览器正在滚动到右侧?任何人有任何建议,我已经尝试了一切?
最佳答案
在没有看到代码或示例的情况下,除了说尝试这两个之外,我真的无法发表评论
box-sizing: border-box;
overflow-x: hidden;
关于html - div是100%width,但是浏览器还是向右滚动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30981739/