综合技术

Give a background image an opacity value

微信扫一扫,分享到朋友圈

Give a background image an opacity value
0

I have a gray linen background image that I repeat to give the whole body a gray linen look. I’d rather it had a gold tinge to it , though, but I don’t have a gold linen image to repeat.
So I was thinking that perhaps I could give he body a gold background color and then apply some transparency to the background image but I’m not seeing any thing in CSS3
that will do that.

Am I missing something?

Thanks

Problem courtesy of: Steve

Solution

Wrap the whole page in a <div>
with the background-color: rgba(#, #, #, .#)
set to the RGBA for gold with the alpha (the .#
) set to your preferred opacity level.

Solution courtesy of: Deryck

阅读原文...


CSS3 Recipes

集英社《YOUNGJUMP》迎来40周年 激情纪念视频放出

上一篇

你知道几个?中级运维必知的10个问题

下一篇

您也可能喜欢

评论已经被关闭。

插入图片
Give a background image an opacity value

长按储存图像,分享给朋友