html - Firefox 溢出 : hidden bug

标签 html css firefox

所以我在我的网页设计中添加了一个图像 slider ,就像现在一样。它在 IE + Chrome 中运行良好,但在 Firefox 中我遇到了一个非常奇怪的问题。图像 slider 图像被推向页面的右侧。

enter image description here

什么时候应该是这样的:

enter image description here

我真的不知道为什么会这样。

这是 slider 的 css:

    <style type="text/css">
        #slider {
            position: relative;
            width: 918px;
        }
        #slider .viewer {
            position: relative;
            width: 918px;
            height: 200px;
            overflow: hidden !important;
        }
        #slider .viewer .reel {
            display: none;
            height: 200px;
        }
        #slider .viewer .reel .slide {
            width: 918px;
            height: 200px;
        }
    </style>

以及 slider 周围容器的 css:

#photobox {
border-left: 1px solid #ababab;
border-right: 1px solid #ababab;
position: relative;
width: 918px;
height: 200px;
z-index: -1;
top: -6px;
}

这真让我难堪。您还可以查看网站的实时版本 - http://simplesolutions.netne.net/

最佳答案

这是一个 float 问题:

#slider {  float:left }

应该修复它。

关于html - Firefox 溢出 : hidden bug,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13852838/

相关文章:

html - 多个 div 对齐问题

javascript - 滚动时 HTML 高度发生变化 - 生成页面内容上方的空间

css - 如果两个元素都存在于同一级别,则切换规则 - SCSS

html - 仅限 IE 的对象必需错误消息

jquery - 如何让 jQuery 效果在 Firefox 和 Google Chrome 上运行?

firefox - webkit vs firefox 文字高度

javascript - isset 函数不起作用

html - 如何在不干扰内容的情况下为可点击元素添加边框?

html - 如何禁用拖动 html 元素(尤其是 "img")?

javascript - 如果复选框选中文本框则获取类 ="form-input validate required",则 Jquery 验证