【发布时间】:2015-11-08 14:51:50
【问题描述】:
这个浏览器特定的 css 是如何使用的?
我有这个:
.example {
transition: all 0.2s ease-in-out 0s ;
-moz-transition: all 0.2s ease-in-out 0s ;
-webkit-transition: all 0.2s ease-in-out 0s
}
都具有相同的值all 0.2s ease-in-out 0s
我应该使用所有三个,还是只使用一个这样的?
.example {
transition: all 0.2s ease-in-out 0s ;
}
默认情况下,此过渡 css 的先前值。
如果我只想要特定浏览器的特定样式,是否使用此浏览器特定的 css,或者即使值相同也必须使用它?
【问题讨论】:
-
你只需要 -webkit 前缀。 -moz 不再需要。 caniuse.com/#search=transition