开发者

Is it possible to shrink an image and make it your background all in css?

I have a div, and I want to make a whole background image fit inside the div, even though the image is a little bigger than the div, how would I go abou开发者_JS百科t shrinking this dynamically?


Looks like it is possible in CSS3 but not currently in CSS2

http://www.w3.org/TR/2002/WD-css3-background-20020802/#background-size

This is also a duplicate of this question

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜