Set opacity of background image without affecting child elements

前端 未结 15 2199
闹比i
闹比i 2020-11-22 01:39

Is it possible to set the opacity of a background image without affecting the opacity of child elements?

Example

All links in the footer need a custom bull

15条回答
  •  时光说笑
    2020-11-22 02:34

    I found a pretty good and simple tutorial about this issue. I think it works great (and though it supports IE, I just tell my clients to use other browsers):

    CSS background transparency without affecting child elements, through RGBa and filters

    From there you can add gradient support, etc.

提交回复
热议问题