不在CSS内容标记中工作 [英] nbsp not working in CSS content tag
本文介绍了不在CSS内容标记中工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
可能重复:
使用CSS内容添加HTML实体
#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?
推荐答案
这可能是您正在寻找的答案:
This could be the answer you are looking for :
content: "\007C\00a0\00a0";
这篇关于不在CSS内容标记中工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文