为字体设置背景:

为每一个字设置span标签,使span变成成为inline-block元素,并设置背景。

span{
display: inline-block;
width: 24px;
height: 24px;
line-height: 29px;
text-align: center;
font-size:12px;
background: url(http://images.cnblogs.com/likecs_com/kuikui/354173/t_apple.jpg) no-repeat;
overflow
: hidden;
}

 

示例:

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-17
  • 2022-12-23
  • 2021-12-10
  • 2021-12-07
  • 2021-12-22
猜你喜欢
  • 2022-12-23
  • 2022-02-07
  • 2022-12-23
  • 2022-12-23
  • 2022-02-10
  • 2021-09-22
  • 2021-06-08
相关资源
相似解决方案