打開小程序開始時,黑色字體呢?
1.首先打開小程序。2.其次,找到下面的字體并選擇主題。3.最后選擇你喜歡的顏色。
微信小程序 如何引入外部字體庫?iconfont的
如何引入外部字體庫?iconfont具體圖標如下
直接使用阿里巴巴的網絡路徑
選擇iconfont圖標
官方網站:阿里巴巴矢量字體庫
步驟:使用阿里巴巴字體庫
全局引入app.wxss
12345678910111213141516171819202122232425262728293031323334
@font-face{font-family:'iconfont';/*projectid518032*/src:url('//at.alicdn.com/t/font_518032_t2q88z3jok8iwwmi.eot');src:url('//at.alicdn.com/t/font_518032_t2q88z3jok8iwwmi.eot?#iefix')format('embedded-opentype'),url('//at.alicdn.com/t/font_518032_t2q88z3jok8iwwmi.woff')format('woff'),url('//at.alicdn.com/t/font_518032_t2q88z3jok8iwwmi.ttf')format('truetype'),url('//at.alicdn.com/t/font_518032_t2q88z3jok8iwwmi.svg#iconfont')format('svg');}.iconfont{font-family:"iconfont"!important;font-size:60rpx;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;}/*本項目使用的18個圖標*/.icon-zhiding:before{content:'\e739';}.icon-zuojiantou:before{content:'\e736';}.icon-youjiantou:before{content:'\e735';}.icon-shangjiantou:before{content:'\e734';}.icon-xiajiantou1:before{content:'\e733';}.icon-xiajiantou:before{content:'\e6cc';}.icon-gengduotianchong:before{content:'\e67f';}.icon-erweima:before{content:'\e65f';}.icon-fenleiorguangchangorqita:before{content:'\e64f';}.icon-dibiao:before{content:'\e64d';}.icon-bangzhu:before{content:'\e64a';}.icon-xinfeng:before{content:'\e640';}.icon-duihuaxinxi:before{content:'\e639';}.icon-sousuo:before{content:'\e62f';}.icon-shouye:before{content:'\e62d';}.icon-shezhi:before{content:'\e62a';}.icon-shanchu:before{content:'\e629';}.icon-dianhua:before{content:'\e61b';}
123456789101112131415161718192021222324
注意:這里沒有實現APPID在微信小程序管理平臺的開發(fā)設置中,實際應用應配置合法域名。
下載到本地
將字體文件轉換成base64格式
解壓壓縮包-找到ttf格式文件-上傳到平臺base64格式-下載壓縮包-css文件名改為wxss—-放入項目文件夾-使用@import全局介紹-使用
使用-引入和全局定義
123456789101112131415161718192021222324
@import"src/css/icon.wxss";.iconfont{font-family:"iconfont";font-size:60rpx;}/*本項目使用的18個圖標*/.icon-zhiding:before{content:'\e739';}.icon-zuojiantou:before{content:'\e736';}.icon-youjiantou:before{content:'\e735';}.icon-shangjiantou:before{content:'\e734';}.icon-xiajiantou1:before{content:'\e733';}.icon-xiajiantou:before{content:'\e6cc';}.icon-gengduotianchong:before{content:'\e67f';}.icon-erweima:before{content:'\e65f';}.icon-fenleiorguangchangorqita:before{content:'\e64f';}.icon-dibiao:before{content:'\e64d';}.icon-bangzhu:before{content:'\e64a';}.icon-xinfeng:before{content:'\e640';}.icon-duihuaxinxi:before{content:'\e639';}.icon-sousuo:before{content:'\e62f';}.icon-shouye:before{content:'\e62d';}.icon-shezhi:before{content:'\e62a';}.icon-shanchu:before{content:'\e629';}.icon-dianhua:before{content:'\e61b';}
123456789101112131415161718192021222324
我下載了一個字體包,怎么用?
很容易,你先把字體包解壓,然后把解壓的字體復制到c:/windows/fonts里面可以,里面全是字體,系統(tǒng)會自動安裝。
如何使用在線下載的字體?
下載的文件通常是打包文件,先解壓,然后把文件放在目錄中c:\windows\fonts里面就夠了。
以上就是【我的下巴掉了!小程序怎么用淘寶字體庫(淘寶小程序怎么進入)】的全部內容。


評論