CSS中隐藏元素的异同
隐藏元素 可以阻止响应事件 文档中移除元素 可以过渡动画 是否继承 阻止元素接受焦点
opacity
visibility
display
pointer-events

http://fellowtuts.com/html-css/difference-between-displaynone-visibilityhidden-or-opacity0/

https://css-tricks.com/snippets/css/toggle-visibility-when-hiding-elements/

http://stackoverflow.com/questions/272360/does-opacity0-have-exactly-the-same-effect-as-visibilityhidden

分享到: