以下面的代碼:如何在Windows 8/IE10中90°旋轉HTML/Javascript中的圖像或對象?
<html>
<body onload="x=0" onkeydown="document.images[0].style.filter='progid:DXImageTransform.Microsoft.BasicImage(rotation='+(x=++x%4)+')'">
<img src="DSCF0353.jpg" height=900>
</html>
爲什麼說這一點,這使得所顯示的圖像週期上的每個鍵擊90°旋轉在Windows 7/IE9,不會在Windows這樣做8/IE10(圖像不旋轉)? 什麼代碼會在Windows 8/IE10中產生旋轉(如果可能的話,以上類似)?
ie10識別CSS3屬性。所以你可以使用旋轉css屬性來旋轉元素。 – Sandeep
查看dis http://stackoverflow.com/questions/7117445/html5-rotating-an-image-with-canvas – Anshu
@Sandeep IE9已經支持CSS3轉換,但微軟在IE10中放棄使用舊版過濾器。 – Licson