CSS property analysis (1): display property

Display:none is commonly used in work, in order to hide the current element

In addition to the none attribute value there are others, such as

block This element will appear as a block-level element with line breaks before and after this element.

inline By default, this element will be displayed as an inline element without line breaks before and after the element.

inline-block inline block elements, etc.

Refer to http://www.w3school.com.cn/cssref/pr_class_display.asp

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325308892&siteId=291194637