Jquery旋转IE6问题
目前我正在使用 jquery 旋转插件来旋转页面上的图像,在我这边的所有浏览器中一切正常。问题是我们的质量保证部门。正在查看他们的 ie6 虚拟机,但他们没有看到页面上旋转的图像(实际上他们只看到图像一瞬间,然后它就消失了。我们的虚拟机之间的主要区别是他们使用的是 ie6 6.0.290 和我正在使用 2.0.260。我只是想从某人那里了解他们是否发现我的代码有问题或者提出建议。这是我的 jquery:
$(window).load(function () {
$('#main-image img').rotate(90);
$('#main-image .rvml').css({ 'margin': '-65px 0 0 -105px' });
if ($('.ie6, .ie7').length) {
$('#main-image .photo').css({ 'overflow': 'hidden', 'height': '240px' });
$('#main-image .rvml').css('position', 'relative');
}
if ($('.ie6, .ie7, .ie8').length) {
$('#main-image img').css('visibility', 'visible');
} else {
$('#main-image img').fadeIn('fast');
}
});
另外这是我一直在使用的插件:http://code.google.com/p/jqueryrotate/
Currently I am using jquery rotate plugin to rotate a image on the page, everything works fine in all browsers on my side. The problem is that our qa dept. is looking at their ie6 vm and they are not seeing the image that is rotated on the page(actually they see the image for a split second and then it dissapears. The main difference between our vm's is that they are using ie6 6.0.290 and i am using 2.0.260. I am just trying to find out from someone if they might see a problem with my code or maybe make a suggestion. Here is my jquery:
$(window).load(function () {
$('#main-image img').rotate(90);
$('#main-image .rvml').css({ 'margin': '-65px 0 0 -105px' });
if ($('.ie6, .ie7').length) {
$('#main-image .photo').css({ 'overflow': 'hidden', 'height': '240px' });
$('#main-image .rvml').css('position', 'relative');
}
if ($('.ie6, .ie7, .ie8').length) {
$('#main-image img').css('visibility', 'visible');
} else {
$('#main-image img').fadeIn('fast');
}
});
Also here is the plugin i have been using: http://code.google.com/p/jqueryrotate/
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
由于要将图像旋转 90 度,因此可以使用 DXImageTransform.Microsoft.BasicImage 旋转属性。
http://msdn.microsoft.com/en-我们/library/ms532918(v=vs.85).aspx
Since you're rotating the image by 90 degrees, you can use the DXImageTransform.Microsoft.BasicImage rotation property.
http://msdn.microsoft.com/en-us/library/ms532918(v=vs.85).aspx