开发者

shrink background-image

开发者 https://www.devze.com 2022-12-17 12:38 出处:网络
I have a transparent PNG that is used as a picture frame, and I want to utilize the background-image declaration to place an image in the transparent center of the frame.The problem is that the images

I have a transparent PNG that is used as a picture frame, and I want to utilize the background-image declaration to place an image in the transparent center of the frame. The problem is that the images I'm using in the background need to be shrunk a bit to fit all of the image's content int开发者_JS百科o the available frame area.

I don't think there is a css or html solution, can I use javascript, jquery, or perhaps php to dynamically shrink the background images to a certain with on load? Thanks.


CSS-2 does not support scaling of background images.

0

精彩评论

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