通过JavaScript设置transform:rotate(angle);
如何通过JavaScript控制transform:rotate(angle);中的angle呢?即angle就是一个变量,表示一定的角度
------解决方案--------------------element.style.webkitTransform = "rotate(-1deg)";
element.style.MozTransform = "rotate(-1deg)";
element.style.msTransform = "rotate(-1deg)";
element.style.OTransform = "rotate(-1deg)";
element.style.transform = "rotate(-1deg)";
参考:www.developerdrive.com/2012/03/coding-vendor-prefixes-with-javascript/