Adding HTML entities using CSS content

后端 未结 9 1255
长情又很酷
长情又很酷 2020-11-22 06:57

How do you use the CSS content property to add HTML entities?

Using something like this just prints  

9条回答
  •  忘掉有多难
    2020-11-22 07:30

    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/

提交回复
热议问题