1.
h3:before {
content: '添加内容';
}
2.
h2:before {
content: url(一般添加图片);
}
3.
h2:before {
content: "("attr(属性名)")";
}
注:attr()返回属性值。
1.
h3:before {
content: '添加内容';
}
2.
h2:before {
content: url(一般添加图片);
}
3.
h2:before {
content: "("attr(属性名)")";
}
注:attr()返回属性值。
相关文章: