css display:none与visibility:hidden的区别 假前端 2019-07-16 326 阅读1分钟 display:none 把元素从dom上移除不占用位置和空间 visibility:hidden 把元素并未从dom上移除,依旧占据空间,只是视觉上消失了