1
當我在MFMailComposeViewController中使用它時,我的CSS格式會丟失。以下是我的示例代碼。我只是將我的表格數據插入正文部分。在MFMailComposeViewController中使用CSS和HTML
<html>
<head>
<style type="text/css">
#customers {
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
width: 100%;
border-collapse: collapse;
}
#customers td,
#customers th {
font-size: 1em;
text-align: right;
border: 1px solid #999999;
padding: 10px 25px 5px 25px;
}
#customers th {
font-size: 1.1em;
text-align: center;
padding: 10px 25px 5px 25px;
background-color: #ffffff;
color: #000000;
}
</style>
</head>
<body>
%@
</body>
</html>
我在撰寫電子郵件時設置「isHTML = YES」。我缺少的東西或是這種方法使用CSS不支持在iPhone上使用MFMailComposeViewController
如果您明智地設置您的帖子的格式,這會有所幫助。 – 2010-11-21 04:27:20