【Sencha Toucha】Sencha Touch ExtJs 给 Button 添加图片
来源:互联网 发布:系统还原数据会消失吗 编辑:程序博客网 时间:2024/04/19 08:35
在网上找了很多例子,说ruby加工图片,公司连不上网装不上去,离线研究了半天也没装上。
也有个一样的这样的帖子,发了一个加图片。说是要加BLANK_IMAGE_URL 这个属性,研究了半天。最后弄出来不用加就可以显示。最后效果如下:
ext代码:
Ext.define('app.view.MPktkf', {extend : 'Ext.Container',xtype : "MPktkf",config : {fullscreen : true,scrollable : true,monitorOrientation : true,dockedItems : [],fullscreen : true,layout : 'vbox',defaults : {padding : 10,defaults : {margin : 5}},items : [{xtype : 'panel',html : '<div class="model"><h2 class="sTitle">报表</h2><div id="sSolid"></div></div>'}, {xtype : 'panel',layout : 'hbox',items : [{xtype : 'button',text : ' 按鈕1 ',ui : 'normal',iconAlign : 'top',iconCls : 'bt_kt',iconMask : true,handler : function onclick() {}}, {xtype : 'button',text : '按鈕2',ui : 'normal',iconAlign : 'top',iconCls : 'bt_ycpj',iconMask : true,handler : function onclick() {}}, {xtype : 'button', text : '按鈕3',ui : 'normal',iconAlign : 'top',iconCls : 'bt_ytkf',iconMask : true,handler : function onclick() {}}, {xtype : 'button',text : '按鈕4',ui : 'normal',iconAlign : 'top',iconCls : 'bt_qtkf',iconMask : true,handler : function onclick() {}}]}, {.......});
css代码
.bt_kt{background: url(images/spirit-level.png) left top no-repeat !important; background-size:100% 100%;width: 3.1em !important;height: 3.1em !important;}
- 【Sencha Toucha】Sencha Touch ExtJs 给 Button 添加图片
- Sencha Touch ExtJs 之 如何给 Button 添加图片
- 【SENCHA TOUCH】Sencha Touch ExtJs 给 Button 添加图片(二)
- Sencha Toucha环境安装
- Sencha Touch 2中如何动态添加button
- Sencha Touch 2中如何动态添加button
- 如何在Sencha Touch List Item中添加一个Button
- Sencha Toucha 2.1 文件上传
- sencha Toucha的环境搭建
- sencha touch 给没有touch事件的控件添加touch事件
- Sencha Touch
- sencha touch
- sencha touch
- sencha touch 彩色图标按钮(button+ico)
- extjs(sencha touch) 调用.net webservice
- [Sencha ExtJS & Touch] 什么是 callParent 和 callSuper ?
- [Sencha ExtJS & Touch] 新手学习资料
- [Sencha ExtJS & Touch] 在Sencha(Extjs/Touch)应用程序中使用plugins(插件)和mixins(混入)
- php分页类
- Hadoop lzo详细安装手册
- Stimulsoft报表开发论坛即将召开,关注移动平台报表开发
- How to Debug
- matlab学习--mat文件
- 【Sencha Toucha】Sencha Touch ExtJs 给 Button 添加图片
- (转)sharedUserId和签名Android权限
- 简单线性表
- 函数
- hibernate 多条件组合查询之sql拼接
- ubuntu 深度音乐播放器
- android intent
- 图片转换成二进制与二进制转换成图片
- Dungeon Master (P2251)