阿里字体小图标的使用

2020-04-17  本文已影响0人  坏丶毛病

在项目开发中,我们难免会用到一些图片之类的样式,但是图片本身体积大,而且更改样式和其他标签融合布局相对麻烦,那么有没有更好的办法呢?

字体小图标解决了我们这个问题。

我们这次就说说常见的阿里字体小图标的使用

官网地址:阿里字体小图标官网

使用步骤:

image

原:

@font-face {font-family: "iconfont";
  src: url('iconfont.eot?t=1553565034687'); /* IE9 */
  src: url('iconfont.eot?t=1553565034687#iefix') format('embedded-opentype'), /* IE6-IE8 */
  url('data:application/x-font-woff2;charset=utf-8;base64,d09GMgABAAAAABQ4AAsAAAAAIygAABPoAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHEIGVgCFaAq0QKh0ATYCJANYCy4ABCAFhG0HgjIbZBwzg8LGARBIvDzZ/+F4Y2iqn+2gQ8EsrgjNw6LpDgfp4pcP7pb28Vgarl1j+C6l3q6ZP+VQVv5EBFbr83ooJUG1bD37IQWZMZLylEdFRXnkWcgK/RopUOhsBJY30aYWJdiElJV+f2dT8DA8bfPfBX0HHKlNGA1tFIqJkTgjwV7U31zL2vqLxpXTVegq1VW5dtFJAIT54LvlN5snMK0gU5HKRJ2f9Df5tcrJBHzyhLuJWQE2QJzslfu69acyrB2WM/ur7rr+FyDQIA015HrgH2fmz8+lNlckoYDdQJjZCVcl/0ty8JNfeMe/fNimnHaUG4JqZSfUZufmkhLmBkCqIOc6oybcvJ9QhW/z59sR9LlzKkSRwXBmD2oSauwf0hWJKslEn0ygatlRcfyRnA2iPE8JnHJNVWUg+nzyhvJQbi0q1s3X4kVBOd2mcwB45n8+/oBSmaSQ4z3VyVVsOcif4N1v+B+f5mY4JMex3ogcjiJPfCg73wHyQY+4WlUZUW/Ma9O/X/8ksWUaXWx6Uckw66l3v+sTGBwFxwy9Nu/+MG/FHLvMI6Tary2pKyoJLU01nfL69aoY1K1RrP94VaKITqpDPM7BIJ/ghgqcQUBlMBgKMASoDoYCFcFIQCUwNlCAyYBaYBqgJpgOqAYWC9QB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zK02SPEknR5GxJZdZcVAVX/kP3wZzre5JjGLX4R+e/484F1osvRJaywr1TGn/uT/UfW1vKI7YettHidMwD4u7bodUEA/I0e0SUG4Y/75KJ+AXqQb7cuETcEtDxJiUyz/VBJmdQIoInAXoMBAHQ2BYC/1/dywL2itPADy/+laOGLOhhQgHMdAqjAzYFm+9WRAAOo68iACiLr6MAXxG/MAFwwAiAAQmkAAB8wfVEHATbYVgcDJjhCEVX2eYoi+24dCQjAWw+ZYgipo4MciGuTATyuoGb2ahAcRiJoBYWs4gy62ZdTvzDxORjiWi72h8YSK3HY7i+jn6jQJLGCrZKjc7GIDRfiY7EM5jmL0nCKodtKRsqX3S7errgNuejMOnqD4B5NI1HQHk0hq/jubvbV/n9h4nMwhisej/5DY+nBRYe27QM4PlUV6IpFMdoqOeYIj8XtfMOF6INwzNkQi0r1XCmGbpuMoJUv7cid4qDqNvuWYiy4/nB/Fe+X62CT2WK12R1Ol9vj9fkROLh4+ASETRqCJ9DhOqryoFq/0k/79JSskobUyEoMkGYt+5RAucBFojz36Tkl6WGhE8N5cwoWf0pa+tBgQhagBjVHOA4gqKaSdQDRgtInvPLwSY1XoxiU9DRvyG2pyVaMR2Pf4iK7LrYYW8eipfTBMjMb8AlQ4QhslsMGmjUryDcROFg3Hqvj4/9oUUmdDgAAAA==') format('woff2'),
  url('iconfont.woff?t=1553565034687') format('woff'),
  url('iconfont.ttf?t=1553565034687') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+ */
  url('iconfont.svg?t=1553565034687#iconfont') format('svg'); /* iOS 4.1- */
}

改:

@font-face {font-family: "iconfont";
  src: url('../font/iconfont.eot?t=1553565034687'); /* IE9 */
  src: url('../font/iconfont.eot?t=1553565034687#iefix') format('embedded-opentype'), /* IE6-IE8 */
  url('data:application/x-font-woff2;charset=utf-8;base64,d09GMgABAAAAABQ4AAsAAAAAIygAABPoAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHEIGVgCFaAq0QKh0ATYCJANY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V/n9h4nMwhisej/5DY+nBRYe27QM4PlUV6IpFMdoqOeYIj8XtfMOF6INwzNkQi0r1XCmGbpuMoJUv7cid4qDqNvuWYiy4/nB/Fe+X62CT2WK12R1Ol9vj9fkROLh4+ASETRqCJ9DhOqryoFq/0k/79JSskobUyEoMkGYt+5RAucBFojz36Tkl6WGhE8N5cwoWf0pa+tBgQhagBjVHOA4gqKaSdQDRgtInvPLwSY1XoxiU9DRvyG2pyVaMR2Pf4iK7LrYYW8eipfTBMjMb8AlQ4QhslsMGmjUryDcROFg3Hqvj4/9oUUmdDgAAAA==') format('woff2'),
  url('../font/iconfont.woff?t=1553565034687') format('woff'),
  url('../font/iconfont.ttf?t=1553565034687') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+ */
  url('../font/iconfont.svg?t=1553565034687#iconfont') format('svg'); /* iOS 4.1- */
}
image

这里选择font class,然后下面的代码就是对应的class名

引入步骤:

<link rel="stylesheet" href="./iconfont.css">
<span class="iconfont icon-xxx"></span>

这里的xxx就是上图的小图标后面的名字

然后只要根据class名更改font属性就可以修改小图标了,比如font-size调整小图标的大小

好了,以上就是阿里小图标的简单使用。

如有问题,请指出,接受批评。

上一篇下一篇

猜你喜欢

热点阅读