【问题标题】:CSS Conflict with jQuery scrollintoview() plugin in ChromeCSS 与 Chrome 中的 jQuery scrollintoview() 插件冲突
【发布时间】:2012-05-31 02:24:17
【问题描述】:

我有一个使用 scrollintoview 插件的网站 (https://github.com/litera/jquery-scrollintoview),但 CSS 存在某种冲突。我有一个没有 CSS 的小提琴按预期工作,而一个没有 CSS 的小提琴。关于我缺少哪些导致冲突的属性的任何想法?小提琴的信息中有更多信息。工作(无 CSS):http://jsfiddle.net/beej/vEGxg/1/ 非工作(带 CSS):http://jsfiddle.net/beej/vEGxg/

注意:我只在 Chrome 中体验过。所有其他浏览器(IE8-9 和 FF)似乎都按预期运行,元素滚动到视图中。

【问题讨论】:

    标签: javascript jquery css google-chrome


    【解决方案1】:

    在非工作的 jsfiddle 中,删除“position:absolute;”此 CSS 块内第 7 行附近的属性:

    .background {
        position: absolute;
        width: 100%;
        background:#042F62 url(../images/bg.jpg) top center no-repeat
    }
    

    【讨论】:

      猜你喜欢
      • 2011-06-18
      • 1970-01-01
      • 2011-11-04
      • 2014-03-01
      • 1970-01-01
      • 2014-06-03
      • 2012-08-20
      相关资源
      最近更新 更多