0

我想在我的 Phonegap 应用程序中有响应图像但是如何使用来自 mysql 数据库和 php 作为服务器端的图像来完成。

4

1 回答 1

-1

您需要对所述图像应用一些 CSS 以使它们具有响应性,无论图像是从img src's 还是 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
}
于 2013-04-24T19:04:08.657 回答