我正在使用Jquery旋轉來旋轉一米左右的圖像,它的效果很好,但在IE7和IE8中它被推高了大約200個像素,並且在圖像周圍有一個黑色筆畫/邊框。jQuery旋轉 - IE7和IE8問題
我使用jQueryRotate3.js它有效,但位置關閉,並不知道黑色邊框來自哪裏?
JS:
var start = 0;
// Sets the Value of the City for now
var angle = 1 + Math.floor(Math.random() * 180);
$("img.pointer").rotate({
angle: start,
animateTo: angle,
easing: $.easing.easeInOutSine
})
HTML:
<div class="city-details">
<div class="details">
<img class="pointer" src="http://demo.omnigon.com/christian_bovine/shamelesscity/images/pointer.png" alt="" />
</div>
</div>
你可以看到這裏的代碼:http://jsfiddle.net/xtian/6gcS8/1/
我真的想在IE7和IE8得到這個工作。
這看起來像插件'jQueryRotate3.js'是幹什麼時髦,因爲如果你註釋掉你的JS位置是好的 – Ronnie
IE9 <濾波器和PNG問題(它不只是IE6),黑色邊框發生是因爲alpha通道。您可以使用8位PNG或GIF,它會工作。 – pocesar