before、:after伪元素 content属性 中文乱码

**

before、:after伪元素 content属性 中文出现乱码

**
解决办法:

  • 将中文转为unicode 编码 站长工具,

  • 例如:—> \u3001 content: “\3001”;

 .box:after {
        content: "你是谁";
 }
 
 =========》 注意:去掉U
 
 .box:after {
        content: "\4f60\662f\8c01";
 }

在这里插入图片描述
注意:去掉字母u

猜你喜欢

转载自blog.csdn.net/u013112461/article/details/102548710