gpt4 book ai didi

css - 无法弄清楚页面宽度增加的原因

转载 作者:太空宇宙 更新时间:2023-11-04 09:29:07 25 4
gpt4 key购买 nike

我的网页http://www.pointmovies.com/在底部显示滚动条,看起来右侧有很多空白空间。我不知道是什么增加了我的页面宽度,我该如何删除它。

它是 wordpress,每篇文章都是一篇文章(图片),宽度为 18% 并向左浮动,因此一行将显示 5 篇文章/文章。但是由于这 18% 的宽度,我看到我的页面宽度增加了。当我从文章 css 中删除这 18% 时,页面正常。

这是文章的CSS

width: 18%;
float: left;
margin: 0px 0px 0px 21px;
min-height: 400px;

这是截图。请检查下面不应该出现的滚动条。 enter image description here

最佳答案

添加

#main {
overflow-x: hidden;
}

到您的 CSS。

对于您的其他问题。#main 之后第一个 div 的样式应该如下所示。这就是您的网站无法正常响应的原因。

margin: auto;
width: 100%;
max-width: 1170px;
display: inline;

Tamoor,overflow-X 从左到右禁用它。

enter image description here

enter image description here enter image description here

关于css - 无法弄清楚页面宽度增加的原因,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40911833/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com