nbsp not working in CSS content tag

Possible Duplicate:
Adding HTML entities using CSS content

#sitenavmenu-content-menu li:before
{
    content:"|  ";
}

I want to add a | and two spaces before each list item. However, for some reason it prints the word nbsp and not the space. Any ideas?


这可能是你正在寻找的答案:

content: "07C0a00a0";

通过从字符映射复制并粘贴非破坏空间到我的代码编辑器来修复它。

链接地址: http://www.djcxy.com/p/15530.html

上一篇: 你可以在CSS“content”属性中使用HTML实体吗?

下一篇: nbsp在CSS内容标签中不起作用