开发者

background-size:cover; alternative for IE6+

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜