伪元素的使用

<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <style>
   .phoneNumber::before {
    content:'\2614';
    font-size: 15px;
    color:red;

    </style>
</head>
<body>
<p class="phoneNumber">12345645654</p>
</body>
</html>

unicode 编码可以当做图形来使用

 

posted @ 2018-01-24 23:33  黑发不知勤学早  阅读(129)  评论(0编辑  收藏  举报