问题 I am trying to achieve this effect of a black and white text on a bi-colored header which is always white on a side, and with a background image on the other side (of different colors). this is the css used for this example, which works only because the image has a solid black background: .text { position: relative; color: rgb(255, 255, 255); mix-blend-mode: difference; text-transform: uppercase; font-size: 60px; } this doesn't work if the background image doesn't have a solid black