小编SIM*_*ITO的帖子

用新的Image()在JavaScript中旋转图像

我尝试使用我尝试过的方式在javascript中旋转图像new Image():

this.gunner = new Image()
this.gunner.src = *url*
this.gunner.style.WebkitTransform = "rotate(20deg)"
Run Code Online (Sandbox Code Playgroud)

但图像仍然像正常一样.

我怎样才能做到这一点?

html javascript css image rotation

5
推荐指数
1
解决办法
4729
查看次数

标签 统计

css ×1

html ×1

image ×1

javascript ×1

rotation ×1