Adding HTML entities using CSS content

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

    For Example :

    http://character-code.com/arrows-html-codes.php

    Example: If you want select your character , I selected "↬" "↬" (We use HEX values)

    .breadcrumbs a:before {
        content: '\0021ac';
    }
    

    Result : ↬

    Thats it :)

提交回复
热议问题