📜  如何插入图标伪内容 - CSS 代码示例

📅  最后修改于: 2022-03-11 14:47:44.098000             🧑  作者: Mango

代码示例3
.css:after {
    content: "\86";
    color: red;
}
.css.char:after {
    content: "†";
    color: blue;
}
.data:after {
    content: attr( data-icon );
}
.js:after {
    content: attr( data-icon );
}
.red:after {
    color: red;
}
.blue:after {
    color: blue;
}