- 在前端项目开发的过程中,在css中content属性设置文本,浏览器中偶现乱码现象,查了很多博文,
尝试使用<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
却不能很好的解决这个问题。
然后我采用了 Unicode 将中文转成Unicode很好的解决了这个问题。
.con::before {
content: "\67e5\770b\8be6\60c5"; //查看详情
margin-right: 5px;
}