All properties of Display

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.