【问题标题】:Firefox doesn't accept CSS class on elementFirefox 不接受元素上的 CSS 类
【发布时间】:2012-07-22 12:50:41
【问题描述】:

我在使用 firefox 时有奇怪的行为(其他浏览器运行良好)。

我有规矩:

.feed.input.community .buttons .url {
    background-position-x: 9px;
}

我打电话后:

$('.input.feed').addClass("community");

你可以在这个截图上看到结果。

也许有人知道为什么或如何确定 Firefox 不接受规则的原因?

【问题讨论】:

  • 这是什么奇怪的行为?

标签: jquery css firefox


【解决方案1】:

这是你的答案。阅读这篇关于背景位置支持的文章

background-image animation not working in Firefox

【讨论】:

    【解决方案2】:

    此属性不是标准的 CSS3 属性。就在一年前,Firefox 还不支持这个属性。我现在还没有找到任何可以证明它的东西。

    看到这个:Is background-position-x (background-position-y) a standard W3C CSS property?

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-09-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-08-05
      • 1970-01-01
      相关资源
      最近更新 更多