Whether to leave the document flow
- display: none: Make the element out of the document flow, do not occupy the original space, will cause the rearrangement of the page
- visibility: hidden: will not leave the document flow, the element is still in its original position if it is not visible
- opacity:0:同 visibility:hidden
inherit
- display: none: The child element still has the display attribute, hidden with the parent element
- visibility: hidden: The child element is set to visibility: visible, which can be displayed separately
- opacity:0:同 display:none
event
- display: none: unable to add event
- visibility: hidden: unable to add event
- opacity: 0: events can be added
[Java interview questions and answers] sorting recommendations
- Basics and Grammar
- set
- network programming
- Concurrent programming
- Web
- Safety
- Design Patterns
- frame
- Algorithms and data structures
- abnormal
- File parsing and generation
- Linux
- MySQL
- Oracle
- Redis
- Dubbo