CSS Pseudo

CSS Pseudo

Used to insert some content before the content of an element.

用于在一个元素的内容前插入一些内容,类似js数组的unshift()操作。

如下例在每一个<h1>元素前添加一张图片。

h1::before 
{
content:url(smiley.gif);
}

The ::after

Used to insert some content after the content of an element.

CSS Pseudo

相关文章:

你感兴趣的文章:

标签云: