使用CSS内容添加HTML实体

如何使用CSScontent属性添加HTML实体

使用类似的方法只需打印&nbsp显示在屏幕上,而不是不间断的空格:

。面包屑a:before{
内容:“ ”;
}

您必须使用转义的unicode:

。面包屑a:before{
内容:'\0000a0';
}

更多有关:http://www.evotech.net/blog/2007/04/named-html-entities-in-numeric-order/

发表评论