1024programmer HTML5 What does display: none mean?

What does display: none mean?

[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!

This article is from the internet and does not represent1024programmerPosition, please indicate the source when reprinting:https://www.1024programmer.com/what-does-display-none-mean-2/

author: admin

Previous article
Next article

Leave a Reply

Your email address will not be published. Required fields are marked *

Contact Us

Contact us

181-3619-1160

Online consultation: QQ交谈

E-mail: [email protected]

Working hours: Monday to Friday, 9:00-17:30, holidays off

Follow wechat
Scan wechat and follow us

Scan wechat and follow us

Follow Weibo
Back to top
首页
微信
电话
搜索