重叠的部分透明元素的不透明度 [英] opacity of overlapping partially transparent elements

查看:45
本文介绍了重叠的部分透明元素的不透明度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果您有一个< div> 元素的不透明度为.5,而另一个÷ div> 元素以相同的不透明度覆盖了第一个元素,那么两者的不透明度放在一起?
不是

if you have one <div> element with an opacity of .5 and another <div> element overlaying the first with an equal opacity then what is the opacity of the two put together?
It's not,

  • .5×.5

不是,

  • .5 + .5

如何计算这样的问题?

推荐答案

我相信您要查找的公式将是1-(x×y)

I believe the formula you are looking for would be 1-(x × y)

这篇关于重叠的部分透明元素的不透明度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆