I'm working on this: http://www.shbarcelona.es/whoweare/debug

In Firefox and Chrome all works fine but the problem comes in background-size property which is not supported on IE7 and I'm used this property all time.

I've been looking at alternatives on google but any works correctly. Any tips?

有帮助吗?

解决方案

You can use :

filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(
src='images/logo.gif',
sizingMethod='scale');

-ms-filter: "progid:DXImageTransform.Microsoft.AlphaImageLoader(
src='images/logo.gif',
sizingMethod='scale')";

But if you use sprites you can have some issues...

Sources : AlphaImageLoader Filter @microsoft

其他提示

PPK shows that it is not supported in IE <9 http://www.quirksmode.org/css/backgrounds-borders/

Paul Irish et al have some say too: http://html5please.com/#background

and I found this polyfill: https://github.com/louisremi/background-size-polyfill also found http://ianfeather.co.uk/ten-reasons-we-switched-from-an-icon-font-to-svg/ that says that polyfill crashed ie8.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top