Sencha Touch 2.0 - iOS中的高分辨率图像问题

时间:2013-06-20 09:53:41

标签: extjs sencha-touch-2 carousel

我正在使用Sencha Touch 2.0和Rhomobile构建我的应用程序。 在我的项目中,无论图像分辨率或尺寸如何,旋转木马中的图像都会在Android设备上正确显示。 Carousel中显示的图像从商店加载,并在Android(所有版本)和iOS(5.0)设备上成功加载。

在iOS中,尺寸为1728x2258(或低分辨率图像)的图像在旋转木马中正确显示,但尺寸为2550x3300的高分辨率图像未显示在旋转木马中。我试过几乎所有的东西请帮助我,如果我留下了什么...我已经通过Sencha.io示例图像调整大小的目的...也尝试了你们发布的解决方法。 (即): Sencha touch 2.0 carousel, image resolution但仍然没有成功。请任何帮助将不胜感激。下面是嵌入旋转木马的图像代码。

{
    xtype: 'image',
    src:imagePath,
    //width:100, 
    //height:200,
    style:{
        'background-size': '100%',  
            'background-repeat': 'no-repeat',
      /*'background-position': 'center',*/
        //'height': '133px',
       //   'width': '100px'
          }
}

0 个答案:

没有答案