开发者

background-size:cover; alternative for IE6+

开发者 https://www.devze.com 2023-02-27 08:55 出处:网络
I need a quick fix for body{background-size:cov开发者_JAVA技巧er;} to work in IE6+ for a client meeting that is tomorrow.What is the best way to go about it? Javascript/jQuery, or some sketchy CSS2 tr

I need a quick fix for body{background-size:cov开发者_JAVA技巧er;} to work in IE6+ for a client meeting that is tomorrow. What is the best way to go about it? Javascript/jQuery, or some sketchy CSS2 tricks, meaning I will have to put the image in a page element instead of just in the CSS.

Thanks


You can use IEFilters. See this article.


If you must do it, it would seem the easiest way would be to use an absolutely positioned image with a height and width of 100%. Then use z-index to get the rest of the content on top of the image.

0

精彩评论

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