2

I'm using a UIWebView to display images in base64 (http://www.abluestar.com/utilities/encode_base64/index.php). The UIWebView is set to "Scales Page To Fit" and Mode is "Left". The image might be 400px wide but once rendered in the UiWebView, it takes up not even half of the screen. I need to do something like style="width:800px;..." before it begins to take up most of the screen and is readable (because it isn't so small). Is this the right way? Why does the image shrink in the UIWebView and I have to then stretch it?

4

1 に答える 1

5

これに対抗するために私が見つけた最善の方法は、HTMLヘッドでこのメタタグを使用することです

<meta name="viewport" content="width=320;height=420;user-scalable=yes;initial-scale=1.0;">

そうすれば、スケーリング効果を補正する必要はありません

于 2009-05-07T14:40:21.257 に答える