Home  >  Article  >  Web Front-end  >  CSS element classification_html/css_WEB-ITnose

CSS element classification_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:40:191153browse


ps: [1] The difference between the two elements is whether the width and height can be set, and whether they occupy an exclusive line

【2】Convert block elements to inline elements, or inline elements to block elements.

If p defaults to p{display:block;}, you can convert p{display:inline;} into an inline element and vice versa.

Special case: The image img is an inline element like a block element. Width and height (own attributes) can be set, but it does not occupy an exclusive line.

【3】Thinking question: If you can make inline elements float, the width and height will work.


Copyright Statement: This article is an original article by the blogger and may not be reproduced without the blogger's permission.

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