IE8中的图像旋转 [英] Image Rotation in IE8

查看:350
本文介绍了IE8中的图像旋转的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在IE 8中旋转图像时遇到问题,它在其他浏览器(Chrome,Mozilla,Firefox)中运行完美.

I am having problem while rotating the image in IE 8 , it works perfect in other browsers(Chrome,Mozilla,Firefox).

除了滤镜progid:DXImageTransform.Microsoft.Basic Image(rotation)之外,还有其他方法吗,因为在使用IE 8缩放图像时使用滤镜时遇到了一些问题.

Is there any other way for this except filter progid:DXImageTransform.Microsoft.Basic Image(rotation) as I am having some problem while using this filter in zooming the image in IE 8.

在垂直缩放级别之后,图像会重置为其正常旋转(角度0),然后该缩放级别一切都会变得完美,但是一旦发生这种情况,图像就会在图像旋转的每个缩放级别上重置.我认为这可能是过滤器问题.

After a perticular level of zoom ,image resets to its normal rotation(Angle 0) before that zoom level everything goes perfect but once this scenario occurs image resets on every zoom level on rotation of image. I think it may be the filters issue.

如果有什么好的文章可以共享,那么也可以帮忙.

if any good article is there for the same then kindly share , this can also be helpful.

推荐答案

IE的旧filter样式臭名昭著.谢天谢地,现在现代IE版本不再需要它了.

IE's old filter styles are notoriously buggy. Thank goodness it's less of an issue now that modern IE versions don't need it any more.

是的,可以在较旧的IE版本中使用它们来执行诸如旋转和渐变之类的操作,但是您必须小心了解它们是ActiveX控件,而不是浏览器的本机部分.

Yes, it's possible to use them to do things like rotation and gradients, etc in older IE versions, but you have to be careful to understand that they are ActiveX controls, and not a native part of the browser.

这意味着它们具有一些局限性和怪异之处,其中一些 无法解决.特别是,如果您尝试将它们与修改元素或元素周围布局的其他浏览器功能结合使用,则会遇到问题.

This means that they have some limitations and quirks, some of which cannot be worked around. In particular, you will have problems if you try to combine them with other browser features that modify the element or the layout around it.

我从未尝试过将zoom与滤镜旋转结合使用,但这听起来像是经典功能无法一起正常使用的情况.如果是这种情况,您可能只需要接受它就不能在旧版IE中运行即可.

I've never tried using zoom in conjunction with a filter rotation, but it sounds like a classic case of features that may not work well together. If that's the case, you may simply have to accept that it's not going to work in old IE versions.

也许您可以找到一种无需使用zoom来完成自己想要的事情的替代方法?如果它是一个文本元素,也许将font-size加倍可以解决问题?或者,如果是图像,则可以增加宽度和高度,并让浏览器为您缩放图像.

Perhaps you could find an alternative way to do what you want without using zoom? If it's a text element, maybe doubling the font-size would do the trick? Or if it's an image, maybe increasing the width and height and letting the browser scale the image for you.

如果这些都不起作用,那么最终的解决方案可能只是为IE8用户提供一个稍微不太令人兴奋的网站版本,该版本的缩放和旋转效果不如其他浏览器那么明显.

If none of that works, the final solution may simply be to provide IE8 users with a slightly less exciting version of your site that doesn't do zooming and rotation quite a much as it does in other browsers.

这篇关于IE8中的图像旋转的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆