【发布时间】:2012-11-25 12:31:57
【问题描述】:
我正在发送html格式的邮件,格式如下
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 上,它的格式不正确 它显示如下
在 Android 中它看起来很好,如下所示
怎么了?
【问题讨论】:
-
我不知道这是否可行,但请在您的 html 页面的
<head>中尝试<meta name="format-detection" content="telephone=no">