Home >Web Front-end >CSS Tutorial >Learning Style Sheet CSS Reference-Commonly Used CSS Knowledge_Experience Exchange

Learning Style Sheet CSS Reference-Commonly Used CSS Knowledge_Experience Exchange

WBOY
WBOYOriginal
2016-05-16 12:07:221411browse
1. Comparison between Block and inline elements

All HTML elements belong to either block or inline.
The characteristics of the block element are:
Always start on a new line;
Height, line height, and top and bottom margins can all be controlled;
The default width is 100% of its container , unless a width is set.
,

,

,

,
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