如何使用CSScontent属性添加HTML实体
使用类似的方法只需打印&;nbsp显示在屏幕上,而不是不间断的空格:
。面包屑a:before{
内容:“&;nbsp;”;
}
您必须使用转义的unicode:
像
。面包屑a:before{
内容:'\0000a0';
}
更多有关:http://www.evotech.net/blog/2007/04/named-html-entities-in-numeric-order/
共同学习, 共同进步, 祝各位早日成为代码大神
如何使用CSScontent属性添加HTML实体
使用类似的方法只需打印&;nbsp显示在屏幕上,而不是不间断的空格:
。面包屑a:before{
内容:“&;nbsp;”;
}
您必须使用转义的unicode:
像
。面包屑a:before{
内容:'\0000a0';
}
更多有关:http://www.evotech.net/blog/2007/04/named-html-entities-in-numeric-order/