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.
我需要在 UIWebView 中加载一些从网上下载的 html 字符串。它们包含很多图像,其中一些对于 ipad 屏幕来说太大了。如何缩放它们以完美适应屏幕边界?我不想将较小的图像缩放到固定尺寸...
使用最大宽度:
img { max-width:100%; }