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

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

    The properties have different semantic meanings. While semantic CSS sounds like it may be silly, as other users have mentioned it has an impact on devices like screen readers -- where semantics impact the accessibility of a page.

提交回复
热议问题