Set opacity of background image without affecting child elements

前端 未结 15 2211
闹比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:12

    Take your image into an image editor, turn down the opacity, save it as a .png and use that instead.

提交回复
热议问题