css block-level tags, inline tags, conversion of inline block tags
高洛峰
Release: 2017-02-20 13:38:38
Original
2207 people have browsed it
CSS block -level label, in -line label, the conversion of inner block labels
In Basic 1, I talked about the common attributes of CSS in detail, several different selectors. Further understand their characteristics to better learn and master related development skills.
Classification of HTML tags
When talking about tag classification, as beginners, when we first use tags, we will find that some attributes do not work on some tags, such as width, height, Horizontal centering, in fact, the use of this attribute only works when used on block-level tags. Personally, I think this is something that beginners can easily overlook, so I wrote it down!
First of all, we can divide HTML tags into block-level tags, inline tags, and inline block tags according to different displays; we will introduce them separately now.
Block-level tag
Features: Occupies one line, and takes effect for the settable attribute values of height, width, line height, and top and bottom margins; if no width is given, the block-level element will The default is the width of the browser, that is, 100% width;
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