Home > Web Front-end > HTML Tutorial > css pseudo-element selector_html/css_WEB-ITnose

css pseudo-element selector_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:50:45
Original
1381 people have browsed it





Pseudo-class




Pseudo-element selector: The effect of a pseudo-element can be achieved by adding an actual element. There are the following four pseudo-element selectors in CSS:
:first- line: is the first line of text of an element. Use styles;
· :first-letter: Use styles for the first letter or first word of text in an element;
· :before: Insert some content before an element;
· :after: Insert some content after an element;


AAAAAAAAA
BBBBBBBB
AAAAAA

BBBBBBB



1111


2222


333333< ;/p>

444444




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