質問

I am trying to make my site compatible with IE7. Initialy i used background-size: contain to fit the backgroun inside an <a> element. But IE7 does not support CSS3. So my question is: Is there a way to resize the background through CSS or i have to resize the .png images?

役に立ちましたか?

解決

you can use this :

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

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

and replace sizing method and image with what you want

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top