[英]How can I rotate an image in IE8 using Prototype?
Stuck with Prototype. 卡在原型上。 Here's a jsfiddle, but you'll have to use the DRAFT feature ( http://doc.jsfiddle.net/basic/introduction.html#draft-page ) to see it in IE8.
这是一个jsfiddle,但是您必须使用DRAFT功能( http://doc.jsfiddle.net/basic/introduction.html#draft-page )才能在IE8中看到它。 http://jsfiddle.net/trevordixon/7rxaE/
http://jsfiddle.net/trevordixon/7rxaE/
<image id="spinner" src="http://cdn3.iconfinder.com/data/icons/transfers/100/239327-loading_spinner-32.png">
<script>
var angle = 0;
setInterval(function() {
angle += 0.1;
$('spinner').setStyle({
'-ms-filter': '"progid:DXImageTransform.Microsoft.Matrix(' +
'SizingMethod = \'auto expand\', ' +
'M11 = ' + Math.cos(angle) + ', ' +
'M12 = ' + -Math.sin(angle) + ', ' +
'M21 = ' + Math.sin(angle) + ', ' +
'M22 = ' + Math.cos(angle) + ')"'
});
}, 16);
</script>
I'm open to better ideas for the spinner; 我愿意为纺纱厂提供更好的主意; animated gif won't work for me for a number of reasons.
gif动画对我不起作用有多种原因。
Drop the -ms-
and the ". IE 8 uses the: 删除
-ms-
和“ -ms-
使用:
filter: property
syntax rather than the newer. 语法,而不是较新的语法。
-ms-filter: "property"
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.