开发者

How to make Transperency for background image without changing the transperency of the text in it in html?

开发者 https://www.devze.com 2023-03-22 18:25 出处:网络
How can i make the background image of a div transperent without changing the transperency of the text 开发者_如何学运维in it.?

How can i make the background image of a div transperent without changing the transperency of the text 开发者_如何学运维in it.?

Thanks in Advance.


Edit the image itself and then save it in the PNG format (the only web format that supports translucency).


As far as i know, you can't do it. You could use absolute positioning and z-indexes to create the same effect. Just changing the background image transparency in an editor and saving it to png would be the best way to do this.

0

精彩评论

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