关于transition-property
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>transition-property</title>
<style type="text/css">
body { background: #abcdef; }
div { width: 800px; height: 800px; margin: auto; transform: rotate(0deg); background: url(images/imooc.png) no-repeat center center, url(images/circle_outer.png) no-repeat center center;
-webkit-transition-property: transform;
-moz-transition-property: transform;
-ms-transition-property: transform;
-o-transition-property: transform;
transition-property: transform;
}
div:hover { cursor: pointer; transform: rotate(180deg);
/*-webkit-transition-property: transform;
-moz-transition-property: transform;
-ms-transition-property: transform;
-o-transition-property: transform;
transition-property: transform;*/
}
</style>
</head>
<body>
<div></div>
</body>
</html>
就是我注释的这几行代码是什么意思呢 过度的时候我不是已经设置图片旋转一百八十度了吗 再添加这几行有什么用呢? 我发现加不加对效果都没有影响
恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧
0 星