【发布时间】:2012-11-23 18:55:30
【问题描述】:
我正在使用 Jquery Rotate 将图像旋转一米,效果很好,但在 IE7 和 IE8 中它会被推高约 200 像素,并且图像周围有黑色笔触/边框。
我正在使用 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,这个位置就很好 -
IE9
标签: jquery rotation image-rotation jquery-rotate