Set opacity of background image without affecting child elements

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

    The "filter" property, needs an integer for percentage of opacity instead of double, in order to work for IE7/8.

    filter: progid:DXImageTransform.Microsoft.Alpha(opacity=50);
    

    P.S.: I post this as an answer, since SO, needs at least 6 changed characters for an edit.

提交回复
热议问题