我使用 的screen
值mix-blend-mode
来组合三个 div,红绿蓝各一个。我想我应该期望组合 div 的中心是白色的,但颜色似乎不对。我误解了它是如何工作的,还是我使用不正确?谢谢你。
请参阅此代码段:
body {
background-color: black;
}
.shape {
width: 300px;
height: 300px;
border-radius: 150px;
mix-blend-mode: screen;
position: absolute;
}
#red {
background-color: red;
left: 75px;
}
#green {
background-color: green;
top: 125px;
}
#blue {
background-color: blue;
top: 125px;
left: 150px;
}
<body>
<div class="shape" id="blue"></div>
<div class="shape" id="red"></div>
<div class="shape" id="green"></div>
</body>