微信小程序使用字体图标的方法


Posted in Javascript onMay 23, 2019

项目中常常需要使用到字体图标,微信小程序中使用字体图标与在平常的web前端中类似但是又有区别。下面以使用阿里图标为例子讲解如何在微信小程序中使用字体图标。

第一步:下载需要的字体图标

进入阿里图标官网http://iconfont.cn/搜索自己想要的图标,如这里需要一个购物车的图标,流程为:

搜索“购物车”图标--->点击“添加入库”-->点击购物车进入购物车-->点击下载代码按钮。

微信小程序使用字体图标的方法

点击下载代码,将得到名为download.zip的压缩包,解压将看到以下内容:

微信小程序使用字体图标的方法

第二步:转换ttf文件

进入https://transfonter.org/平台,将解压出来的ttf字体文件转化成base64格式。流程如下:

微信小程序使用字体图标的方法

微信小程序使用字体图标的方法

点击下载,得到转换后的压缩包,名为transfonter.org-开头。解压可以得到如下图的几个文件:

微信小程序使用字体图标的方法

第三步:在微信小程序中使用

新建微信小程序,将默认生成的代码删除。

1--在index.css文件中添加样式内容。打开刚刚我们经过转换的解压出来的文件,找到stylesheet.css,将其中的内容全部复制到index.css文件中。注意是转换过的那个文件。

微信小程序使用字体图标的方法

2--打开没有转换过的download.zip解压出来的文件,找到iconfont.css文件,将这个文件中的没有打岔的内容复制到index.css文件中。@font-face这部分不要,只要下边的这部分。

微信小程序使用字体图标的方法

3--在index.wxml中使用字体图标。代码如下:

<!--index.wxml-->
<view class="container">
个人中心
<text class="iconfont icon-wode" style="font-size:50px;color:red"></text>
</view>

效果如下:

微信小程序使用字体图标的方法

字体图标跟字体一样,可以通过font-size来改变大小,通过指定color来改变他的颜色。

总结:到这里微信小程序的字体图标的使用就完成了,这里经过转换成64位编码之后,直接将样式放在css文件中即可,并不需要引入其他以外的文件,相当简洁。

附上css全部代码:

/* This stylesheet generated by Transfonter (https://transfonter.org) on July 3, 2017 11:03 AM */
 
@font-face {
 font-family: 'iconfont';
 src: url(data:font/truetype;charset=utf-8;base64,AAEAAAAQAQAABAAARkZUTX8kO7sAAB2MAAAAHEdERUYAJwAUAAAdbAAAAB5PUy8yV6BZhAAAA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VktsDMssAAWILAJQyAuRyNHI2EgYLAgYGawgGIjICA8ijgtsDQsIyAuRrACJUZSWCA8WS6xJAEUKy2wNSwjIC5GsAIlRlBYIDxZLrEkARQrLbA2LCMgLkawAiVGUlggPFkjIC5GsAIlRlBYIDxZLrEkARQrLbA3LLAuKyMgLkawAiVGUlggPFkusSQBFCstsDgssC8riiAgPLAEI0KKOCMgLkawAiVGUlggPFkusSQBFCuwBEMusCQrLbA5LLAAFrAEJbAEJiAuRyNHI2GwBkUrIyA8IC4jOLEkARQrLbA6LLEJBCVCsAAWsAQlsAQlIC5HI0cjYSCwBCNCsAZFKyCwYFBYILBAUVizAiADIBuzAiYDGllCQiMgR7AEQ7CAYmAgsAArIIqKYSCwAkNgZCOwA0NhZFBYsAJDYRuwA0NgWbADJbCAYmGwAiVGYTgjIDwjOBshICBGI0ewACsjYTghWbEkARQrLbA7LLAuKy6xJAEUKy2wPCywLyshIyAgPLAEI0IjOLEkARQrsARDLrAkKy2wPSywABUgR7AAI0KyAAEBFRQTLrAqKi2wPiywABUgR7AAI0KyAAEBFRQTLrAqKi2wPyyxAAEUE7ArKi2wQCywLSotsEEssAAWRSMgLiBGiiNhOLEkARQrLbBCLLAJI0KwQSstsEMssgAAOistsEQssgABOistsEUssgEAOistsEYssgEBOistsEcssgAAOystsEgssgABOystsEkssgEAOystsEossgEBOystsEsssgAANystsEwssgABNystsE0ssgEANystsE4ssgEBNystsE8ssgAAOSstsFAssgABOSstsFEssgEAOSstsFIssgEBOSstsFMssgAAPCstsFQssgABPCstsFUssgEAPCstsFYssgEBPCstsFcssgAAOCstsFgssgABOCstsFkssgEAOCstsFossgEBOCstsFsssDArLrEkARQrLbBcLLAwK7A0Ky2wXSywMCuwNSstsF4ssAAWsDArsDYrLbBfLLAxKy6xJAEUKy2wYCywMSuwNCstsGEssDErsDUrLbBiLLAxK7A2Ky2wYyywMisusSQBFCstsGQssDIrsDQrLbBlLLAyK7A1Ky2wZiywMiuwNistsGcssDMrLrEkARQrL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2RlBnNlYXJjaBBkaWxpd2Vpemhpc2hlemhpCmRhaXBpbmdqaWEKZGFpc2hvdWh1bwRpY29uCGRhaWZhaHVvCWRhaWZ1a3VhbgZzaG91eWUAAAEAAf//AA8AAQAAAAwAAAAWAAAAAgABAAEADQABAAQAAAACAAAAAAAAAAEAAAAA1CSZJgAAAADVf9FKAAAAANV/0Uo=) format('truetype');
 font-weight: 500;
 font-style: normal;
}
 
.iconfont {
 font-family:"iconfont" !important;
 font-size:16px;
 font-style:normal;
 -webkit-font-smoothing: antialiased;
 -moz-osx-font-smoothing: grayscale;
}
 
.icon-search:before { content: "\e611"; }
.icon-youjiantou:before { content: "\e603"; }
.icon-daifukuan:before { content: "\e684"; }
.icon-daishouhuo:before { content: "\e642"; }
.icon-wode:before { content: "\e606"; }
.icon-icon:before { content: "\e64b"; }
.icon-diliweizhishezhi:before { content: "\e616"; }
.icon-daifahuo:before { content: "\e678"; }
.icon-daipingjia:before { content: "\e619"; }
.icon-shouye:before { content: "\e69d"; }

以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持三水点靠木。

Javascript 相关文章推荐
javaScript 利用闭包模拟对象的私有属性
Dec 29 Javascript
js实现动态加载脚本的方法实例汇总
Nov 02 Javascript
JavaScript学习笔记整理_关于表达式和语句
Sep 19 Javascript
Bootstrap栅格系统学习笔记
Nov 25 Javascript
15个非常实用的JavaScript代码片段
Dec 18 Javascript
Bootstrap选项卡学习笔记分享
Feb 13 Javascript
微信小程序 本地数据读取实例
Apr 27 Javascript
详解vue项目打包后通过百度的BAE发布到网上的流程
Mar 05 Javascript
Vue 监听列表item渲染事件方法
Sep 06 Javascript
vue 使用html2canvas将DOM转化为图片的方法
Sep 11 Javascript
vue和better-scroll实现列表左右联动效果详解
Apr 29 Javascript
vue设置全局访问接口API地址操作
Aug 14 Javascript
个人小程序接入支付解决方案
May 23 #Javascript
一篇文章介绍redux、react-redux、redux-saga总结
May 23 #Javascript
微信小程序上传图片到php服务器的方法
May 23 #Javascript
React精髓!一篇全概括小结(急速)
May 23 #Javascript
微信小程序实现上传word、txt、Excel、PPT等文件功能
May 23 #Javascript
微信小程序实现文件、图片上传功能
Aug 18 #Javascript
微信小程序实现图片上传
May 23 #Javascript
You might like
php下过滤html代码的函数 提高程序安全性
2010/03/02 PHP
PHP开发框架Laravel数据库操作方法总结
2014/09/03 PHP
自己整理的一个javascript日期处理函数
2010/10/16 Javascript
基于jquery的固定表头和列头的代码
2012/05/03 Javascript
js Math 对象的方法
2013/09/01 Javascript
js禁止回车提交表单的示例代码
2013/12/23 Javascript
js加密解密字符串可自定义密码因子
2014/05/13 Javascript
jQuery实现跨域
2015/02/03 Javascript
js实现的二级横向菜单条实例
2015/08/22 Javascript
jquery实现点击弹出带标题栏的弹出层(从右上角飞入)效果
2015/09/19 Javascript
js实现导航栏中英文切换效果
2017/01/16 Javascript
Bootstrap 3浏览器兼容性问题及解决方案
2017/04/11 Javascript
详解vue服务端渲染(SSR)初探
2017/06/19 Javascript
webpack4 SCSS提取和懒加载的示例
2018/09/03 Javascript
Vue监听滚动实现锚点定位(双向)示例
2019/11/13 Javascript
vue-cli在 history模式下的配置详解
2019/11/26 Javascript
JavaScript TAB栏切换效果的示例
2020/11/05 Javascript
JS中多层次排序算法的实现代码
2021/01/06 Javascript
python批量提交沙箱问题实例
2014/10/08 Python
Pipenv一键搭建python虚拟环境的方法
2018/05/22 Python
python dataframe 输出结果整行显示的方法
2018/06/14 Python
Python3中exp()函数用法分析
2019/02/19 Python
python+opencv实现摄像头调用的方法
2019/06/22 Python
pygame实现俄罗斯方块游戏(AI篇1)
2019/10/29 Python
关于python3.7安装matplotlib始终无法成功的问题的解决
2020/07/28 Python
python re的findall和finditer的区别详解
2020/11/15 Python
pandas统计重复值次数的方法实现
2021/02/20 Python
html5的canvas实现3d雪花飘舞效果
2013/12/27 HTML / CSS
利用promise及参数解构封装ajax请求的方法
2021/03/24 Javascript
项目合作计划书
2014/01/09 职场文书
学习决心书
2014/03/11 职场文书
论文评语大全
2014/04/29 职场文书
大学生学雷锋活动总结
2014/06/26 职场文书
初中生庆国庆演讲稿范文2014
2014/09/25 职场文书
导游词之吉林吉塔
2019/11/11 职场文书
在Windows Server 2012上安装 .NET Framework 3.5 所遇到的问题
2022/04/29 Servers