上一页 1 ··· 4 5 6 7 8
摘要: 感谢Q群&sheng的实践,我们的Q群是224711028关于自定义ico除了我之前说的利用png图片来实现,还可以利用font-face。请大家看看http://icomoon.io/app/嗯,效果不错,再加上字体颜色的话也能做出五颜六色的图标。不错不错,而且css本身占用比png图片要小一些。不过有些缺点1.同样都是32px,每个图标的边距留白不同,显示出来的大小不一样,很难看2.还有一个致命的缺陷,图标或许会经常变动,如果使用文字图标,需要把多个图标文字合并在一起从而减小文件大小,但这样做显得繁琐,图片就不存在这样的问题没有实践过不发表意见...待续吧... 阅读全文
posted @ 2013-06-11 00:02 魔狼再世 阅读(579) 评论(0) 推荐(0)
摘要: Sencha Touch comes with fully history and deep-linking support. This gives your web applications the following two important benefits: The back button works inside your apps, helping you to navigate correctly and quickly between screens without refreshing the page Deep-linking enables your users to 阅读全文
posted @ 2013-06-10 23:52 魔狼再世 阅读(3394) 评论(0) 推荐(1)
摘要: 里面的图标看起来五颜六色,而且可以很方便的切换各种颜色出来。在这里利用了html5的一些特性,其实这些ico的原型都是这样的这个原型图片名为:maps.png代码如下:1 xtype: 'button', text: '装修招标', iconAlign: 'top', iconCls: 'maps ico roseRed'css如下: 1 .ico { 2 -webkit-mask-size:100%; 3 background-color:#6A6A6A; 4 background-image:none; 5 } 6 .maps 阅读全文
posted @ 2013-06-09 11:23 魔狼再世 阅读(2139) 评论(0) 推荐(1)
摘要: 在显示一条新闻时,如果其中包含了图片,图片过大的话会吧视图给撑大,在app中体验很不好。所以需要控制图片的大小,且需要考虑到该图片已经被指定高宽下的情况。可以使用css来控制1 img {2 width:100% !important;3 height:auto !important;4 } 阅读全文
posted @ 2013-06-08 09:42 魔狼再世 阅读(1038) 评论(1) 推荐(0)
摘要: pg版本2.6,如果不进行监控的话,点击超链接时,会在app中直接打开,导致app出错。pg2.6中navigator.app.loadUrl的作用也是一样的。所以使用window.open(a.href, '_system'); 1 var el = Ext.getCmp('questionInfo').element; 2 el.clearListeners(); 3 el.on('tap', function (e, t) { 4 ... 阅读全文
posted @ 2013-06-07 17:36 魔狼再世 阅读(1052) 评论(0) 推荐(0)
摘要: 搬运,备忘1 Ext.Ajax.on('beforerequest', function (connection, options) {2 });3 Ext.Ajax.on('requestcomplete', function (connection, options) {4 });5 Ext.Ajax.on('requestexception', function (connection, options) {6 ... 阅读全文
posted @ 2013-06-07 16:26 魔狼再世 阅读(600) 评论(0) 推荐(0)
摘要: 查看Ext.data.JsonP源码重写了源码中的方法,以便能够加入自动提示。看起来不是那么的优雅,求高人指点 1 var me = this; 2 //提示消息 3 me.message = '正在努力加载中...'; 4 //提示消... 阅读全文
posted @ 2013-06-07 16:22 魔狼再世 阅读(642) 评论(0) 推荐(0)
摘要: 2.1中在配置文件中设置masked: false是不能禁用masked的list是继承于dataview的,查看dataview的源码发现 1 onBeforeLoad: function() { 2 var loadingText = this.getLoadingText(); 3 if (loadingText && this.isPainted()) { 4 this.setMasked({ 5 xtype: 'loadmask', 6 message: loadi... 阅读全文
posted @ 2013-06-07 15:02 魔狼再世 阅读(553) 评论(0) 推荐(0)
摘要: 此效果手机未测试,目测没问题,我是搬运工...演示地址:http://scaljeri.github.io/pull-refresh-panel/源码地址:https://github.com/scaljeri/pull-refresh-panel效果图:使用示例:http://www.cnblogs.com/mlzs/p/3382229.html 阅读全文
posted @ 2013-06-04 17:39 魔狼再世 阅读(1673) 评论(4) 推荐(1)
摘要: 1 //监控幻灯片页面 2 huandeng: { 3 //幻灯片旋转事件 4 painted: function (sender, opts) { 5 sender.element.on('dragend', 6 function (e) { 7 if (sender.offset == 0) { 8 ... 阅读全文
posted @ 2013-05-31 10:13 魔狼再世 阅读(914) 评论(0) 推荐(0)
摘要: 今天一个朋友问我setRecord 与 setData的区别这里就不得不说到record与data的区别console.log(record);console.log(data);根据官方api的解释说record:Ext.data.ModelA model instance which updates the Component's html based on it's tpl. Similar to the data configuration, but tied to to a record to make allow dynamic updates. This must 阅读全文
posted @ 2013-05-29 16:33 魔狼再世 阅读(2332) 评论(0) 推荐(0)
摘要: 呃,在小米手机上测试了下,表现的不是很好...放弃使用了..此文仅作参考效果如图2.1源码https://github.com/mitchellsimoens/Ux.layout.Accordion这个效果不错,正在尝试使用 阅读全文
posted @ 2013-05-21 11:39 魔狼再世 阅读(797) 评论(0) 推荐(0)
摘要: 直接分离插件化,可选择是否支持历史记录功能 1 /* 2 *扩展NavigationView 3 *返回时自动销毁视图,节约内存 4 */ 5 Ext.define('ux.CardPanel', { 6 extend: 'Ext.NavigationView', 7 ... 阅读全文
posted @ 2013-05-14 17:53 魔狼再世 阅读(1025) 评论(0) 推荐(1)
摘要: 最近换了一个工作,需要用到sencha-touch2 mvc,网上的资料很是杂乱,特地做一个汇总。要有一定的js基础,了解一些js框架才行。官方网站:http://www.sencha.com/products/touch/在线文档:http://docs.sencha.com/touch/2.2.1/在线翻译文档:http://touch.scsn.gov.cn/首先先看看http://www.cnblogs.com/html5mob/这里的文章。这是比较基础的东西,入门的话看这个很合适。然后在了解了解http://www.cnblogs.com/dowinning/category/352 阅读全文
posted @ 2012-10-11 14:06 魔狼再世 阅读(2463) 评论(2) 推荐(1)
摘要: 只能输入藏文中文英文数字这些可以使用上下左右方向键的\u4E00-\u9FA5 中文\u0F00-\u0FFF 藏文\d 数字\s 空格a-zA-Z 英文\u3002\uff01-\uff1f\u3001-\u301f\u2013-\u201f 部分中文标点\x20-\x2F\x3A-\x40\x5B-\x60\x7B-\x7E英文标点 阅读全文
posted @ 2010-12-14 17:16 魔狼再世 阅读(599) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8