【发布时间】:2017-03-11 14:29:11
【问题描述】:
我尝试使用 new Image() 在 javascript 中旋转 image 我尝试了这个:
this.gunner = new Image()
this.gunner.src = *url*
this.gunner.style.WebkitTransform = "rotate(20deg)"
但图像还是正常的。
我该怎么做?
【问题讨论】:
-
你在测试哪个浏览器?
-
我正在用 chrome 测试它
标签: javascript html css image rotation