The three attributes of span

hzc
Release: 2020-06-12 14:33:35
Original
14026 people have browsed it

The three attributes of span

The three attributes of span are:

1. span will not occupy a separate line;

2. Span is an inline element, and setting the width and height does not work;

3. Setting the top, bottom, and bottom margins of span does not work.

Definition of span:

tag is used to combine inline elements in the document.

Tips and Notes:

Tip: Use to group inline elements to format them with styles.

Note: span has no fixed format. It only changes visually when you apply a style to it.

Recommended tutorial: "css tutorial"

The above is the detailed content of The three attributes of span. For more information, please follow other related articles on the PHP Chinese website!

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