使用 CSS 内容添加 HTML 实体 [英] Adding HTML entities using CSS content
本文介绍了使用 CSS 内容添加 HTML 实体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何使用 CSS content
属性添加 HTML 实体?
How do you use the CSS content
property to add HTML entities?
使用这样的东西只会将
打印到屏幕而不是不间断的空间:
Using something like this just prints
to the screen instead of the non-breaking space:
.breadcrumbs a:before {
content: ' ';
}
推荐答案
你必须使用转义的 unicode :
You have to use the escaped unicode :
喜欢
.breadcrumbs a:before {
content: ' 000a0';
}
更多信息:http:///www.evotech.net/blog/2007/04/named-html-entities-in-numeric-order/
这篇关于使用 CSS 内容添加 HTML 实体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文