Does opacity:0 have exactly the same effect as visibility:hidden

前端 未结 9 1432
予麋鹿
予麋鹿 2020-11-22 11:53

If so, does it effectively deprecate the visibility property?

(I realize that Internet Explorer does not yet support this CSS2 property.)
Comparis

9条回答
  •  不知归路
    2020-11-22 12:26

    Im not sure entirely, but this is how i do cross browser transparency:

    opacity: 0.6;
    -moz-opacity: 0.6;
    filter: alpha(opacity=60);
    

    objects with Visibility:hidden still have shape, they just arent visible. opacity zero elements can still be clicked and react to other events.

提交回复
热议问题