CSS put html entity as content
This question already has an answer here:
CSS isn't HTML. You can't use HTML entities in it.
Use the literal character ( ✖
) or a CSS unicode escape instead.
You have to use the escaped unicode :
Like
td.o:after {
content:" 0a2";
}
td.x:after {
content:" 0a4";
}
More info on : http://www.evotech.net/blog/2007/04/named-html-entities-in-numeric-order/
Try
td.o:after{
content:"9675";
font-weight:bold;
}
td.x:after{
content:"2716"
}
For the first one, it gives another symbol, so please check if you used the right code for it...
http://jsfiddle.net/7XXbK/
链接地址: http://www.djcxy.com/p/15538.html上一篇: 如何在CSS中使用十六进制值作为项目符号
下一篇: CSS将html实体作为内容