Adding HTML entities using CSS content

后端 未结 9 1142
长情又很酷
长情又很酷 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:28

    I know this is an pretty old post, but if spacing is all your after, why not simply:

    .breadcrumbs a::before {
        content: '>';
        margin-left: 8px;
        margin-right: 8px;
    }
    

    I have used this method before. It wraps perfectly fine to other lines with ">" by its side in my testing.

提交回复
热议问题