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

前端 未结 9 1327
予麋鹿
予麋鹿 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:32

    I'm not entirely sure of this, but I think screen readers don't read things that are set to visibility hidden, but they may read things regardless of their opacity.

    That's the only difference I can think of.

提交回复
热议问题