CSS:伪元素之后
使用此元素可以在元素之后插入一些内容。下面的示例演示如何使用:after元素在元素之后添加一些内容。
示例
<html>
<head>
<style>
p:after
{
content: url(/images/bullet.gif)
}
</style>
</head>
<body>
<p> This line will be succeeded by a bullet.</p>
<p> This line will be succeeded by a bullet.</p>
<p> This line will be succeeded by a bullet.</p>
</body>
</html>