Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在我的 Phonegap 应用程序中有响应图像但是如何使用来自 mysql 数据库和 php 作为服务器端的图像来完成。
您需要对所述图像应用一些 CSS 以使它们具有响应性,无论图像是从img src's 还是 mysql 数据库加载都无关紧要。
img
src
试试这个 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 }