CSS 实现元素页面隐藏的常用方式

3 阅读1分钟
  1. display: none(最常用,彻底消失)

  2. visibility: hidden(占位隐藏)

  3. opacity: 0(透明隐藏)