Iconfont-阿里巴巴矢量图标库

1、可以对单个图标下载,下载PNG图片应用到项目中去。

Iconfont-阿里巴巴矢量图标库_第1张图片

2、将需要的图标添加到购物车中,然后下载生成的代码,应用到项目中去。

      好处是可以调整图标的大小以及颜色,很方便。

Iconfont-阿里巴巴矢量图标库_第2张图片 

Iconfont-阿里巴巴矢量图标库_第3张图片 

效果图:

Iconfont-阿里巴巴矢量图标库_第4张图片 

 使用步骤

使用步骤如下:

第一步:引入项目下面生成的 fontclass 代码:

第二步:挑选相应图标并获取类名,应用于页面:

 HTML代码



	
		
		
		
	
	
		
		
	

 CSS文件

@font-face {font-family: "iconfont";
  src: url('iconfont.eot?t=1564368657528'); /* IE9 */
  src: url('iconfont.eot?t=1564368657528#iefix') format('embedded-opentype'), /* IE6-IE8 */
  url('data:application/x-font-woff2;charset=utf-8;base64,d09GMgABAAAAAAN8AAsAAAAAB1gAAAMtAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHEIGVgCDBgqCOII0ATYCJAMMCwgABCAFhG0HPhuCBiMRVoM02X8q7pio5p1QpsGMEz3KPMAah8zamYADElyh4PEOCK6Fr03YHx2CPeYy5kxXX75SpmBG1uuF4InmPt/sbHKI7ABAnboCkWp9ZVnIagLFkkH9dAEPF6AGkLEgvTXniNyEiZorytoBKralfMv5S9OBl9PJxX0LAoCMmkcpnQONClW4FHlqZ3wKUNZXCrXZbU9OqzJT3FIiKIUmS01IpmvUAUzJ5ZD5P5fTW4nPb1kucw086mVpHFBAY22KrEAC8hbZRexPXOZxCBBIqmLSvbvcO/5YYJwAspElQcc/o8fWlAr+CC6yVP9XgL85Ze7DheD78kn5g8FRYOrg+jbutL9tSfcmD0EwnhWQVoECxcCCzKP2STSKF1MCDak1a8HFIpixQp5HwDeV7kr/eAbEBYqDAchnZeakBA4LAu9oBQYABcBlkkvABZYSvaPgZMaHhsaGBO5ZH6ej4w5eORP34lGvJfXHLk49tDImeC/fm2il2kgxN+eFWcGD89qZK7q089KYSt+4KqL3wEHTiqAzoymv+N8hPj7xzfs9r/gyFtO5zZftIt7dQN3n9Bm17K3qSowoSHVpGhgyDn7Gc/wmBrfFXz09vmWmZIaZXdcvHzKE41nNrrCcJVQv4T3WHmcXVCVXccsqGz41fiN+eb8gfGCkFnuBd93e75f8hvx5LoS5PywAz+ODEYHXu6WdE/xP2CHwAwQt66wpgny1gL7HBXJKGcC5PS2BJAQecEd6018Z07oYBH9iEjD4kQKKP9mopRSDQxDV4OJPGwRSpG91EFE2UcQGAIWOMSCEuwWGUG6DEu4BaimvwSHWF3AJTyGQB8+WW86tymZrxkAwhvAHWUS1oiaZhaVXTNoy4LQooD6RmywEjmnnU3uskceY0bwTV0SBYqpgx5yGZUmgmXKMxExFtGdZCnuTGVHVmVljKCBQDIR+QCZCasprLWaFz1+hRKsU4BpSg/0JsUbWOXCY7BboXl63Il3LK423hEsIBSiMVMCOsaKSxAnQ+KAcighT2iOqeSyukWorN+dXVs+3jU5nBu7rZ0TFsrgsqIVaIyL9G/7aX1Z3OgAAAA==') format('woff2'),
  url('iconfont.woff?t=1564368657528') format('woff'),
  url('iconfont.ttf?t=1564368657528') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+ */
  url('iconfont.svg?t=1564368657528#iconfont') format('svg'); /* iOS 4.1- */
}

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

.icon-jiantou-copy:before {
  content: "\e632";
	color: green;
}

.icon-yuyin:before {
  content: "\e76f";
	color: orange;
}

然后去调整css样式即可。

你可能感兴趣的:(图标,icon)