现在的位置: 首页 > 综合 > 正文

sencha touch如何动态改变panel里面的background-image元素

2013年12月12日 ⁄ 综合 ⁄ 共 330字 ⁄ 字号 评论关闭

非常好用~~~

例子:

appIndex.getBannerThree().element.setStyle({backgroundSize: 'contain'});
        appIndex.getBannerThree().element.setStyle({backgroundImage: 'url('aaa.jpg')

或者Ext.getCmp('bannerThree').element..........

如有疑问SenchaTouchQQ
群 224711028交流。

参考:http://www.sencha.com/forum/showthread.php?148588-Dynamically-change-background-image-of-a-panel

抱歉!评论已关闭.