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

css pseudo-element selector_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:50:451384browse





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




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