CSS: after selectors
CSS selectors complete reference manual
Definition and description
: After selectors to insert content after the selected element.
Use the content attribute to specify the content to be inserted.
Browser Support
Figures in the table represent the first browser to support the version number of the property.
选择器 | |||||
---|---|---|---|---|---|
::after | 4.0 | 9.0 部分从 8.0 |
3.5 | 3.1 | 7.0 部分从4.0 |
Note: after running IE8, you must declare <DOCTYPE!> .
related articles
CSS tutorial: CSS Pseudo-Elements
CSS Selector Reference: CSS: the before selectors
More examples
Examples
In each <p> After inserting the content and style:
p: after
{
content: "- Remember this";
background-color: yellow;
color: red;
font-weight: bold;
}
{
content: "- Remember this";
background-color: yellow;
color: red;
font-weight: bold;
}
try it"