1.先登录阿里图标
http://www.iconfont.cn
2.加入购物车定制自己的项目图标
3.下载或者使用网络资源,在iconfont.css可以查看到自己要的图标
@font-face {
font-family: 'iconfont';
src: url('http://at.alicdn.com/t/font_1474796923_6082804.eot'); /* IE9*/
src: url('http://at.alicdn.com/t/font_1474796923_6082804.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('http://at.alicdn.com/t/font_1474796923_6082804.woff') format('woff'), /* chrome、firefox */
url('http://at.alicdn.com/t/font_1474796923_6082804.ttf') format('truetype'), /* chrome、firefox、opera、Safari, Android, iOS 4.2+*/
url('http://at.alicdn.com/t/font_1474796923_6082804.svg#iconfont') format('svg'); /* iOS 4.1- */
}
.iconfont {
font-family:"iconfont" !important;
font-size:16px;
font-style:normal;
-webkit-font-smoothing: antialiased;
-webkit-text-stroke-width: 0.2px;
-moz-osx-font-smoothing: grayscale;
}
4.使用iconfont字体库