3-2作业题,缩放和旋转不能同时进行
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | <!DOCTYPE html> <html> <head> <meta charset= "UTF-8" > <title> 3 -1 作业</title> <style> div { font-size : 14px ; font-weight : bold ; line-height : 50px ; position : fixed ; top : 0 ; right : 0 ; bottom : 0 ; left : 0 ; width : 200px ; height : 50px ; margin : auto ; cursor : pointer ; text-align : center ; background : #abcdef ; /*此处写代码*/ } /*此处写代码*/ div:hover{ transform: scale( 2 , 2 ); transform: rotate( 360 deg); transition-duration: 1 s; } </style> </head> <body> <div>www.imooc.com</div> </body> </html> |
为什么我这里旋转和缩放不能同时进行,现在只能缩放或者只能旋转,哪里出问题了?
38
收起
正在回答 回答被采纳积分+1
3回答
响应式开发与常用框架 2018
- 参与学习 人
- 提交作业 2198 份
- 解答问题 5012 个
如果你有web端基础,既想进阶,又想进军移动端开发,那就来吧,我们专题为你带来的课程有HTML5、CSS3、移动基础、响应式、bootstrap、less等,让你在前端道路上畅通无阻!
了解课程
恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧