How to make the background DIV only transparent using CSS

后端 未结 8 807
予麋鹿
予麋鹿 2020-12-02 22:31

I am using CSS attrubutes :

filter: alpha(opacity=90);    

opacity: .9;

to make the DIV transparent,

8条回答
  •  生来不讨喜
    2020-12-02 23:14

    I don't know if this has changed. But from my experience. nested elements have a maximum opacity equal to the fathers.

    Which mean:

    Div#a has 0.6 opacity div#b has 1 opacity

    Has #b is within #a then it's maximum opacity is always 0.6

    If #b would have 0.5 opacity. In reallity it would be 0.6*0.5 == 0.3 opacity

提交回复
热议问题