All properties See MDN Documentation: Https://developer.mozilla.org/zh-CN/docs/Web/CSS/display
Commonly used are:
None; hide elements, do not render, do not occupy space;
inline; Specify elements as inline elements
Block; Specifies that the element is a chunk-level element
Inline-block, elements similar to displacement elements, and input,textarea, can be set to a wide height, but not wrapped
Flex; elastic telescopic box;
List-item; Specifies that the object is a list item. There is information that can imitate the UL Li, I did not realize, and even if can imitate, why to imitate it? There are UL and Li can use ah ... The specific application scenario could not be found. It doesn't make sense to feel this property.
Table A table similar to HTML. No use.
Table-cell; Specifies the object as a table cell, similar to a TD label; see: Https://www.jianshu.com/p/e288e5e73c72 Zhang Xin Xu
Not responding margin
, but responding padding
;
After the text content is more, the parent element is big;
All properties of Display