UIWebview中html内的图像不合适

时间:2015-06-08 09:37:15

标签: iphone ios8 uiwebview xcode6

我想显示谷歌更新,网页是响应的,但图像宽度没有正确显示,并走出界限。这是网页的内容。



<div dir="ltr" style="text-align: left;" trbidi="on"><span id="docs-internal-guid-489c1670-b0dc-d32d-645e-eaf6ca555069"><span style="font-family: Verdana; font-size: 13.3333333333333px; font-weight: bold; vertical-align: baseline; white-space: pre-wrap;"><img alt="whats_new_doc_header_may2015LL.gif" height="112px;" src="https://lh5.googleusercontent.com/6RY9WSfX5yDRLKfl_Vp7GRQR1bFew_fO2rfOh7qcWrWwLvuaWtTxwIedwqvZJrQqGRPrlsJ-J3nlwrBGcEfhzDDwL_3yec8occvTSJTNeQVHNk4_tlmB-SQYfkqYkkJkRAJM64Q" style="-webkit-transform: rotate(0.00rad); border: none; transform: rotate(0.00rad);" width="624px;" /></span></span><br /><span style="font-family: Arial, Helvetica, sans-serif;">Check out the latest "What's New in Google Apps" </span><a href="https://goo.gl/RbYK9q" style="font-family: Arial, Helvetica, sans-serif;" target="_blank">newsletter</a><span style="font-family: Arial, Helvetica, sans-serif;"> [</span><a href="https://goo.gl/uepQTc" style="font-family: Arial, Helvetica, sans-serif;" target="_blank">pdf</a><span style="font-family: Arial, Helvetica, sans-serif;">] for a roundup of all Apps launches from May 2015.</span><br /><br /><a href="http://goo.gl/SUjIUI" style="font-family: Arial, Helvetica, sans-serif;" target="_blank">Newsletter Archive &amp; Translated Versions (coming soon for May issue)</a><br /><span style="font-family: Arial, Helvetica, sans-serif;"><br /></span><i><span style="color: #999999; font-family: Arial, Helvetica, sans-serif; font-size: x-small;"><br /></span></i><i><span style="color: #999999; font-family: Arial, Helvetica, sans-serif; font-size: x-small;">Note: all launches are applicable to all Google Apps editions unless otherwise noted</span></i><br /><br /><a href="http://whatsnew.googleapps.com/"><b>Launch release calendar</b></a><br /><a href="http://feedburner.google.com/fb/a/mailverify?uri=GoogleAppsUpdates&amp;loc=en_US"><b>Get these product update alerts by email</b></a><br /><a href="http://googleappsupdates.blogspot.com/atom.xml"><b>Subscribe to the RSS feed of these updates</b></a></div><img src="http://feeds.feedburner.com/~r/GoogleAppsUpdates/~4/5Saf-LdMFA4" height="1" width="1" alt=""/>
&#13;
&#13;
&#13;

Portrait

Landscape

1 个答案:

答案 0 :(得分:6)

&#13;
&#13;
 lv = (ListView)findViewById(R.id.list);
&#13;
&#13;
&#13;