使用CSS,如何将“►”之类的字符设置为HTML列表的列表标记?
最佳答案
像这样在CSS中使用所需字符的十六进制值:
ul li:before {
content: "\25BA"; /* hex of your actual character, found using CharMap */
}
注意:这在IE
演示:http://jsfiddle.net/mrchief/5yKBq/
在元素符号后添加空格:
content: "\25BA" " ";
Demo您还可以使用如下图像:
ul {
list-style: disc url(bullet.gif) inside;
}
关于html - CSS-使用字符作为列表标记,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/7002684/