[display:none] means to hide the element and leave the document. The flow is to hide the area and does not occupy the actual space, but it really exists in the background, and the hidden element can be obtained. Simply put, it is When an element is set to none, it will neither occupy space nor be displayed, which means that the element does not exist.
display:none means:
Hiding the element and leaving the document, the flow is to hide the area, It does not occupy the actual space, but it really exists in the background, and the hidden element can be obtained. Simply put, when the element is set to none, it will neither occupy space nor be displayed, which means that the element does not exist.
After reading the meaning of display none, let’s take a look at the usage of display none.
Area to be hidden
Setting the display:none attribute value, it becomes the effect as shown in the figure below: the area that needs to be hidden is hidden.
Recommended tutorial: “HTML Tutorial”
The above is the detailed content of what display:none means. For more, please pay attention to other related articles on 1024programmer.com!