【问题标题】:why show the different in same function at different browser为什么在不同的浏览器上显示相同的功能不同
【发布时间】:2017-12-29 21:17:45
【问题描述】:

我创建了一个可拖动的小部件,它在 localhost 和 chrome 中运行良好,但在 Firefox 中无法正常运行

这段代码我也包含了

 moz-transform: scaleX(-1) scaleY(-1);
    -o-transform: scaleX(-1) scaleY(-1);
    -webkit-transform: scaleX(-1) scaleY(-1);
    transform: scaleX(-1) scaleY(-1);

你能不能给点建议

【问题讨论】:

  • 看起来您错过了第一条规则的-
  • 您找到任何可行的解决方案了吗?

标签: javascript php css


【解决方案1】:

您的 Mozilla 规则中有错字。无论如何,请尝试以下 CSS 以实现完全的跨浏览器兼容性:

.my_element
{
    -webkit-transform: scaleX(-1) scaleY(-1);
    -moz-transform: scaleX(-1) scaleY(-1);
    -ms-transform: scaleX(-1) scaleY(-1);
    -o-transform: scaleX(-1) scaleY(-1);
    transform: scaleX(-1) scaleY(-1);
}

【讨论】:

    猜你喜欢
    • 2012-09-07
    • 1970-01-01
    • 2012-04-20
    • 1970-01-01
    • 2019-08-03
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多