【问题标题】:-moz- and -webkit- do I need to use this nowadays?-moz- 和 -webkit- 我现在需要使用它吗?
【发布时间】:2016-05-13 06:08:24
【问题描述】:

我最近做了一个网站,我没有在我的css中添加-moz和-webkit。

像这样:

#mydiv{
position: absolute;
width: 100px;
height: 100px;
border:1px solid #000;
border-radius: 2px;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
transition: width 2s;
background: linear-gradient(red, yellow);
}

问题: 像上面一样保持它可以吗?还是我需要添加:

background: -webkit-linear-gradient(red, yellow);
background: -o-linear-gradient(red, yellow);
background: -moz-linear-gradient(red, yellow);

-webkit-border-radius: 2px;
-moz-border-radius: 2px;

-webkit-transition: width 2s;

-ms-transform: translate(-50%, -50%);
-webkit-transform: translate(-50%, -50%);

【问题讨论】:

    标签: css css-transitions


    【解决方案1】:

    对于某些您仍然需要的属性,对于其他属性则不需要。

    如果不是最好的方法(我是这么说的),了解哪些属性仍然需要查看Can I use?

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2011-05-10
      • 2011-02-17
      • 1970-01-01
      • 2019-07-28
      • 2018-02-01
      • 2013-08-07
      • 1970-01-01
      相关资源
      最近更新 更多