2012-12-07 19 views
1

你好我发送邮件的HTML格式,它的格式如下HTML格式看起来很不错Android上而不是在iPhone上

nameValuePairs.add(new BasicNameValuePair("message", "<b> Your Last Alert: </b> <br/><br/> On " + "<font color=\"red\"> " + mDate 
       + "</font>" + " at " + "<font color=\"red\"> " + mTime + "</font>" + ", " + "\"<font color=\"red\">" + model + "</font>\"" 
       + " reported that its battery level was down to " + "<font color=\"red\"> " + batteryLevel + "%.</font>" 
       + "<br/> You might want to get it on a charger before it's too late! <br/><br/><br/><br/><b> Do you know where \"" 
       + "<font color=\"red\">" + model + "</font>\"" + " is? </b><br/><br/> Click " + "<a href=\"" + s + "\"> here </a>" 
       + " to view in Google Maps.<br/> To find \"<font color=\"red\">"+ model +"</font>\" with the Last Alert app on another iOS device, click <a href = \"" + linkForiPhone 
       + "\"> here </a>. <br/>" + "Android users, Click <a href = \"" + linkForAndroid 
       + "\"> here </a>. <br/><br/><br/><b><u> Last Known Location : </u></b><br/> " + address 
       + "<br/><br/><br/><br/><br/><b><u>GPS Coordinates</b></u> <br/>" + cutLat + ", " + cutLong 
       + "<br/><br/><b><u>Altitude</b></u><br/>" + alt + " " + "<br/><br/><b><u>Location Accuracy</b></u>" + "<br/>" + diameter 
       + " Diameter")); 

当我打开这个邮件在Android上它看起来很大 但在iPhone上很不看在正确的格式 它显示像机器人下面

enter image description here

它看起来很好像下面

enter image description here

有谁能够解决我的问题,什么是错的???

+0

我不知道这是否可行,但在你的html页面的''中尝试'' – HashtagMarkus

回答

0

您可以直接链接到地图应用使用

<a href=http://maps.google.com/maps?q=address>address</a> 

地址,可能避免邮件应用程序的自动格式化。

相关问题