开发者

background-size: contain; and alpahimageloader. How to achieve scaling, not stretching in ie?

开发者 https://www.devze.com 2023-04-02 16:48 出处:网络
I have two divs with background images, whic开发者_开发问答h should be placed on the top left and bottom right corners. I made it liquid with percentage width and height and background size in modern

I have two divs with background images, whic开发者_开发问答h should be placed on the top left and bottom right corners. I made it liquid with percentage width and height and background size in modern browsers (Chrome, FF, Safari) and with filters in IE. The template is for landscape mode, so I set the background-size to "contain", so the background image should scale (proportionally reduces the width and height). However, in IE it streches (independently reduces the width and the height) on square monitros (1280x1024). So my quiestion is how to script the css (filters) to make the image SCALE in IE?

Thanks in advance!

0

精彩评论

暂无评论...
验证码 换一张
取 消