Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在开发一个新网站。我在网站的右侧有一个额外的空间,我无法确定它是从哪里来的。
我使用 CSSEdit 和 Firebug 来检查页面的 CSS,但没有帮助。我只能说,当我移除图像滑块时,这个间隙就会消失。但我再次无法理解这个 div 中的什么导致了问题。
会是什么呢?
链接到网站
在 flex-direction-nav ( flexslider.css:54) 中,您设置以下样式:
flexslider.css
.flex-direction-nav .flex-prev { left: -36px; }
由于元素位于最左侧,这使得站点更大。移除 flexslider,将其放在更右侧,或更改/删除该(有问题的)CSS 规则。
尽量隐藏溢出的内容
#site { position: relative; overflow-x: hidden; }
它肯定会起作用