JavaScript IE rotation transform maths
问题 I am working on setting the rotation of an element with JavaScript, I know this is easy to achieve if you want to set to a 90 degree angle but this is not what I want. Because I want to set to strange angles such as 20 degrees I need to use the transform filter. I know the layout of this but I was wondering how I calculate the four values, at first I tried this. calSin = Math.sin(parseInt(css[c])); calCos = Math.cos(parseInt(css[c])); element.style.filter = 'progid:DXImageTransform.Microsoft