perhaps? 2008-10-10 07:19 采纳率: 100%
浏览 250
已采纳

使用 CSS 内容添加 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: ' ';
}

转载于:https://stackoverflow.com/questions/190396/adding-html-entities-using-css-content

  • 写回答

9条回答 默认 最新

  • local-host 2008-10-10 07:27
    关注

    You have to use the escaped unicode :

    Like

    .breadcrumbs a:before {
        content: '\0000a0';
    }
    

    More info on : http://www.evotech.net/blog/2007/04/named-html-entities-in-numeric-order/

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(8条)

报告相同问题?

悬赏问题

  • ¥50 如何增强飞上天的树莓派的热点信号强度,以使得笔记本可以在地面实现远程桌面连接
  • ¥15 MCNP里如何定义多个源?
  • ¥20 双层网络上信息-疾病传播
  • ¥50 paddlepaddle pinn
  • ¥20 idea运行测试代码报错问题
  • ¥15 网络监控:网络故障告警通知
  • ¥15 django项目运行报编码错误
  • ¥15 STM32驱动继电器
  • ¥15 Windows server update services
  • ¥15 关于#c语言#的问题:我现在在做一个墨水屏设计,2.9英寸的小屏怎么换4.2英寸大屏