[英]Scaling image and Video to fit the ipad screen
I need to load in a UIWebView some html strings downloaded from the web. 我需要在UIWebView中加载一些从网上下载的html字符串。 They contains a lot of image and, some of that are to large for the ipad screen.
它们包含很多图像,其中一些图像对于ipad屏幕来说太大了。 How can I scale them to fit perfectly the screen bounds?
如何缩放它们以完全适合屏幕边界? I don't want to scale smaller image to a fixed dimension...
我不想将较小的图像缩放到固定尺寸...
Use max width: 使用最大宽度:
img {
max-width:100%;
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.