2013-04-24 67 views

回答

-1

您需要将一些CSS应用于所述图像以使它们变得响应,如果图像是从imgsrc或mysql数据库加载的都没关系。

试试这个CSS:

img { 
    max-width: 1000px; //upper-bound 
    min-width: 320px; //lower-bound 
    width: 100%; //set the image to be the width of whatever the screen width is now 
} 
+0

参见[此线索](http://stackoverflow.com/questions/15179999/responsive-design-support-of-phone-gap)覆盖的最佳途径在PhoneGap中处理响应式设计 - 您可以使用内置方法来调用设备字符串,但是__最有效的方法是使用媒体查询和最大和最小宽度。 – MikeZ 2013-04-25 16:35:57