且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

IE9和Javascript间隔。

更新时间:2022-06-24 09:57:17

你好fred123,

Hi fred123,

请尝试使用

document.styleSheets [0]。 cssRules [cssBlockIndex] .style.setProperty(' - ms- transform','rotate('+ theta +'deg)','');

document.styleSheets[0].cssRules[cssBlockIndex].style.setProperty('-ms-transform','rotate(' + theta + 'deg)','');

而不是

document.styleSheets [0] .rules [cssBlockIndex] .style.setProperty(' - ms-transform','rotate('+ theta +'deg)','');

document.styleSheets[0].rules[cssBlockIndex].style.setProperty('-ms-transform','rotate(' + theta + 'deg)','');

请告诉我它是怎么回事,谢谢。

Please let me know how it goes, thanks.