【问题标题】:Bootstrap Carousel Firefox Positioning引导轮播 Firefox 定位
【发布时间】:2012-11-25 15:24:35
【问题描述】:

我在我的网站上使用 Bootstrap Carousel - 一切正常 - 只有 Firefox 出现问题。

.carousel-inner 仅在我设置时显示:

.carousel-inner{ 
    overflow:visible;
    width:auto;
}

但是现在,当动画运行时,滚动条会出现在所有其他浏览器中。 保持原样

.carousel-inner{ 
    overflow:hidden;
    width:auto;
}

将隐藏滚动条,但整个 div 在 FF 中以某种方式定位到右侧。

我的错误在哪里,我在哪里搞砸了,或者这是一个 FF 定位错误?

【问题讨论】:

    标签: css firefox twitter-bootstrap positioning


    【解决方案1】:

    Firefox 出现问题的原因是这样的:

    .carousel {
        margin: -1px 0 0 -1px;
    }
    

    具体来说,否定的margin-top

    【讨论】:

    • 你可能也应该删除这个:.carousel .item { margin: -1px 0 0 -1px; }.
    • 就这么简单。谢谢。
    猜你喜欢
    • 2014-08-22
    • 1970-01-01
    • 1970-01-01
    • 2016-01-31
    • 1970-01-01
    • 2019-06-12
    • 2021-03-18
    • 1970-01-01
    • 2014-04-10
    相关资源
    最近更新 更多