首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >如何在gmail中防止邮件宽度压缩?

如何在gmail中防止邮件宽度压缩?
EN

Stack Overflow用户
提问于 2019-07-11 23:10:47
回答 1查看 224关注 0票数 1

我有一封固定宽度的邮件。但是gmail压缩了它。如何防止压缩?

代码语言:javascript
复制
<table bgcolor="#F3F3F3"
       style="Margin:0;margin:0;padding: 0;font-family:'Arial',sans-serif;max-width:100%;padding:0;width:100%;background:#F3F3F3;">
  <style>
    a{
      text-decoration: none;
      color: inherit;
      color: inherit !important;
    }
    @media print{
      body, html{
        -webkit-print-color-adjust: exact;
      }
    }
  </style>
  <tbody>
  <tr>
    <td>
      <center>
        <table width="600" bgcolor="#6999CC"
               style="Margin:0 auto;margin:0 auto;max-width:100%;width:600px;background:#6999cc;">
          <tbody bgcolor="#6999CC" style="background: #6999CC">
          <tr bgcolor="#6999CC" style="background: #6999CC">
            <td bgcolor="#6999CC" style="background: #6999CC">
              <center bgcolor="#6999CC" style="background: #6999CC">
                <table>
                  <tbody>
                  <tr>
                    <td height="4" style="height: 4px;line-height: 4px;">&nbsp;</td>
                  </tr>
                  </tbody>
                </table>
                <!--spacer-->

                <table cellpadding="0" cellspacing="0" border="0" width="570" ...

在其他应用程序中,我没有这个问题。我已经尝试修复所有的层,包装应该是100%的宽度。有什么技巧可以让gmail理解宽度吗?

如果我有几封信,gmail会进行“对话”,所有内容都会被引用。在它之后,每个引用布局都刹车!即使它是ok的earlier.Because gmail削减一半的样式使用这个“伟大的”功能!

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2019-07-12 18:34:19

这个问题是因为增加了应用程序中的字体大小。为了防止增加,我在末尾添加了这一行:

代码语言:javascript
复制
<div style="white-space:nowrap!important;line-height: 0; color: #ffffff;">
- - - - - - - - - - - - - - - - - - - - - - - -  - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
</div>

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

https://stackoverflow.com/questions/56992368

复制
相关文章

相似问题

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