博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
sencha touch 2.3.1 自己定义图标
阅读量:2401 次
发布时间:2019-05-10

本文共 1462 字,大约阅读时间需要 4 分钟。

E文好的请看下面文档

http://docs.sencha.com/touch/2.3.1/#!/guide/theming

Adding Your Own Icons to Your Application

E 文不好的人 当然也要看上面的文档,如果安装文档的方法做,你会发现,无论如何也无法通过sencha app build 老是include the webfont file into this Sass file using the @include icon-font mixin statement. Once downloaded, incorporate the font file into your Compass files using the @font-face mixin 错误

解决 方法就是,http://stackoverflow.com/questions/16985226/icomoon-not-loading-properly/16998639#16998639  

 1)https://icomoon.io/app/#/select/font 到此神站,选择你需要的图标,或者上传你的图标,生成font形式,解压到

{sencha app}\resources\sass\stylesheets\fonts\pictos

2)

编辑 sass 目录下的 app.css文件

// The following two lines import the default Sencha Touch theme. If you are building

// a new theme, remove them and the add your own CSS on top of the base CSS (which
// is already included in your app.json file).
@import 'sencha-touch/default';
@import 'sencha-touch/default/all';
// Custom code goes here..
// Examples of using the icon mixin:
// @include icon('user');
//@include pictos-iconmask('check2');
@include icon-font("icomoon",inline-font-files(
"pictos/icomoon.woff",woff,
"pictos/icomoon.ttf",truetype,
"pictos/icomoon.svg",svg
));
@include icon('icon-coin', '\e600', 'icomoon');
@include icon('icon-location', '\e601', 'icomoon');
@include icon('icon-stats', '\e602', 'icomoon');
@include icon('icon-rocket', '\e603', 'icomoon');
@include icon('icon-news', '\e604', 'icomoon');
@include icon('icon-mail', '\e605', 'icomoon');

build 就Ok了

转载地址:http://xipob.baihongyu.com/

你可能感兴趣的文章
xp优化19招
查看>>
e龙旅行网
查看>>
fuyuncat
查看>>
我看看中文网
查看>>
Unix 高级用户命令 lsof 和 fuser (zt)
查看>>
dbasupport
查看>>
使用logrotate 管理Linux日誌檔(zt)
查看>>
第一次安装完linux不能上网的解决办法?
查看>>
zlc158
查看>>
linux安装完后的操作!
查看>>
(redhat) 在tcp/ip层次上创建虚拟接口.
查看>>
Apache
查看>>
用iptales实现包 过虑型防火墙(zt)
查看>>
如何用iptables实现NAT(zt)
查看>>
IBM-Windows 到 Linux 之旅: 系列文章概述
查看>>
Fedora core 5.0加载ntfs分区(yum方法)
查看>>
加载usb设备!
查看>>
yum--Yellow dog Updater, Modified
查看>>
星际译王(stardict)
查看>>
加载ntfs分区(通过加载支持ntfs内核补丁的方法)
查看>>