CSS中opacity=0,visibility=hidden,display=none的时候,三者有什么区别呢?? 参考了stackoverflow的博客,才发现区别如下所示: Here is a compilation of verified information from the various answers. Each of these CSS properties is in fact unique. In addition to rendering an element not…
区别一: display:none Turns off the display of an element (it has no effect on layout); all child elements also have their display turned off. //隐藏这个元素;所有的子元素也跟着他隐藏. visibility:hidden The box is invisible (fully transparent, nothing is drawn), but stil…