首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Html电子邮件在Android上无法正常工作

问Html电子邮件在Android上无法正常工作
EN

Stack Overflow用户
提问于 2017-06-23 17:07:16
回答 1查看 38关注 0票数 0

请看一下我的代码,并告诉我有什么问题。这是一封Html电子邮件。它在所有设备上都能完美地工作,但不能在Android上工作。我已经搜索了两天,仍然不知道为什么。

谢谢

代码语言:javascript
复制
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="Content-Type" content=" text/watch-html; charset=utf-8" />
    <title>Email</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
</head>
<body><!--[if IE]>
      <p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
    <![endif]-->
<table align="center" border="0" cellpadding="0" cellspacing="0" style="font-family:Helvetica,Arial, sans-serif;height: 748px; padding: 280px 90px 100px; background-image: url(https://image.jpg);" width="600">
    <tbody>
        <tr>
            <td style="font-size: 20px; color:#415ca7;height: 100px;"> is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's</td>
        </tr>
        <tr>
            <td style="height: 10px;">
            <hr style="height:3px; background-color:#d01d1b; width: 40px; float:left;border:none;" /></td>
        </tr>
        <tr>
            <td style="font-size: 15px; color:#415ca7;height: 120px;padding-bottom: 50px;"> is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's</td>
        </tr>
        <tr>
            <td class="button" style="background-color: #d01d1b;border-radius: 5px;text-align: center;padding: 10px 20px;line-height: 40px;display: block;margin: 0 auto;width: 200px;"><a href="#" style="color: #ffffff;display: block;font-size: 14px;text-decoration: none;text-transform: uppercase;" target="_blank">LINK</a></td>
        </tr>
    </tbody>
</table>
</body>
</html>
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2017-06-23 17:57:26

我猜它只是在android手机上看起来不太好?这是一个非常常见的问题。This文章详细介绍了这篇文章。但基本上,你应该有一个流畅的布局,可以调整到许多屏幕尺寸。

CSS有时也不能很好地与android配合使用。Here是CSS属性的列表,以及它们与android的兼容性。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/44717443

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档