为什么两个堆叠的半透明盒子的最终颜色取决于订单?
我怎么能这样做才能在两种情况下得到相同的颜色?
.a {
background-color: rgba(255, 0, 0, 0.5)
}
.b {
background-color: rgba(0, 0, 255, 0.5)
}Run Code Online (Sandbox Code Playgroud)
<span class="a"><span class="b"> Color 1</span></span>
<span class="b"><span class="a">Different Color 2</span></span>Run Code Online (Sandbox Code Playgroud)