阿里iconfont矢量图Unicode 引用格式是󰇇,但是有时候想在伪类:before或者:after中使用如何解决
解决办法:把前面的 &#x 换成\复制粘贴到content: "";中,比如
- /*qq图标*/
- .icon-qq:after{
- content: "\f01c7";
- font-family: "iconfont";
- position: absolute;
- right: 0px;
- top: 2px;
- }
阿里iconfont矢量图Unicode 引用格式是󰇇,但是有时候想在伪类:before或者:after中使用如何解决
解决办法:把前面的 &#x 换成\复制粘贴到content: "";中,比如
- /*qq图标*/
- .icon-qq:after{
- content: "\f01c7";
- font-family: "iconfont";
- position: absolute;
- right: 0px;
- top: 2px;
- }