📜  在 css font awesome 之前 - CSS 代码示例

📅  最后修改于: 2022-03-11 14:47:29.282000             🧑  作者: Mango

代码示例1
css code
---------
.wrapper {
    width:160px;
    margin:20% auto;
}

p {
  border:1px solid #666;
  padding:12px 25px;
}

p.email:before,
p.mobile:before{
   font-family: FontAwesome;
   display: inline-block;
   padding-right: 6px;
   vertical-align: middle;
}

p.mobile:before {
   content: "\f095";
}

p.email:before {
   content: "\f003";
}

html code
------------

Mobile No