CSS rgba transparency bug in Chrome?

后端 未结 3 679
眼角桃花
眼角桃花 2020-12-20 14:44

Just placing a DIV with white background and any opacity value:

background-color: rgba(255, 255, 255, .5);

over a white (255x3) background.

3条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-20 15:32

    The weird behaviour is still present in Chrome 38 and Canary 40. The fix that worked for me was to add a transform: translateZ(0); to the div with the rgba background.

提交回复
热议问题