如何在IE中进行背景大小的工作? [英] How do I make background-size work in IE?
本文介绍了如何在IE中进行背景大小的工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有什么已知的方法使CSS样式 background-size
在IE中工作?
Is there any known way to make the CSS style background-size
work in IE?
推荐答案
有点晚了,但这也可能是有用的。有一个IE过滤器,对于IE 5.5+,你可以应用:
A bit late, but this could also be useful. There is an IE filter, for IE 5.5+, which you can apply:
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(
src='images/logo.gif',
sizingMethod='scale');
-ms-filter: "progid:DXImageTransform.Microsoft.AlphaImageLoader(
src='images/logo.gif',
sizingMethod='scale')";
但是,这会缩放整个图像以适合分配的区域,因此,如果您使用sprite,this may cause issues。
However, this scales the entire image to fit in the allocated area, so if you're using a sprite, this may cause issues.
规格: AlphaImageLoader过滤器@microsoft
这篇关于如何在IE中进行背景大小的工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文