CSS3 transition 浏览器兼容性

1、兼容性

根据canius(http://caniuse.com/#search=transition),transition 兼容性如下图所示:

<!DOCTYPE html>
<html>
<head>
<style> 
div
{
100px;
height:100px;
background:blue;
transition:width 2s;
-moz-transition:width 2s; /* Firefox 4 */
-webkit-transition:width 2s; /* Safari and Chrome */
-o-transition:width 2s; /* Opera */
}

div:hover
{
300px;
}
</style>
</head>
<body>

<div></div>

<p>请把鼠标指针移动到蓝色的 div 元素上,就可以看到过渡效果。</p>

<p><b>注释:</b>本例在 Internet Explorer 中无效。</p>

</body>
</html>

 在IE7-9进行测试时,transition的效果没有过渡效果(如线性过渡效果),但是还是有效果(立即执行transition-propertytransition-durationtransition-timing-functiontransition-delay都不起作用)

transition: top 15s;
-moz-transition:top 15s; /* Firefox 4 */
-webkit-transition:top 15s; /* Safari and Chrome */
-o-transition:top 15s; /* Opera */

原文地址:https://www.cnblogs.com/mengfangui/p/6603452.html

原文地址:https://www.cnblogs.com/liyouwu/p/9760505.html