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

CSS element classification_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:40:19
Original
1187 people have browsed it


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.

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template