CSS引入字体图标

2019独角兽企业重金招聘Python工程师标准>>> hot3.png

@font-face {font-family: 'layui-icon';
  src: url('../font/iconfont.eot');
  src: url('../font/iconfont.eot?#iefix') format('embedded-opentype'),
  url('../font/iconfont.woff') format('woff'),
  url('../font/iconfont.ttf') format('truetype'),
  url('../font/iconfont.svg#iconfont') format('svg');
}

.layui-icon{
  font-family:"layui-icon" !important;
  font-size: 16px;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

转载于:https://my.oschina.net/u/3238650/blog/1621181

你可能感兴趣的:(CSS引入字体图标)