Disable opacity on child element when parent element has opacity

后端 未结 6 1985
灰色年华
灰色年华 2020-12-05 06:30

I have a container with an opacity of 0.8. At the background, I have an image that shines through the content div. Now, I have a photo of my client in this

6条回答
  •  渐次进展
    2020-12-05 07:06

    Opacity applies to the element and any children / content in the element.

    For partially transparent colos use RGBA bg colours.

    For partially transparent background images, a JS/JQ solution is required.

提交回复
热议问题