Home  >  Article  >  Web Front-end  >  What are the display attributes of css?

What are the display attributes of css?

coldplay.xixi
coldplay.xixiOriginal
2020-10-28 14:13:1517329browse

The display attributes of css are: 1. [display: none] hides elements; 2. [display: inline] turns block-level tags into inline tags; 3. [display: block] turns inline tags Tags become block-level tags.

What are the display attributes of css?

The display attributes of css are:

1. display: none: hide the element, and the physical position is not there .

What are the display attributes of css?

2. When the mouse moves to the c1 and c2 areas, c1 is hidden.

What are the display attributes of css?

3. display: inline: Convert block-level tags into inline tags.

What are the display attributes of css?

4. display: block: Convert inline tags into block-level tags.

What are the display attributes of css?

5. display: inline-block: It not only has the feature of displaying inline tags side by side, but also has the attribute of setting the length and width of block-level tags.

This is a normal document flow. Unlike float, which will float.

What are the display attributes of css?

##6. display: Use margin to adjust the extra gap in inline-block.

What are the display attributes of css?

Related free recommendations: "CSS Video Tutorial"

The above is the detailed content of What are the display attributes of css?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn