Gmail不接受全宽电子邮件

时间:2016-12-30 11:33:54

标签: html css email gmail

我的Gmail电子邮件模板有点问题。它只发生在Gmail应用中,我想要一个全宽的电子邮件模板,但在右侧,边距比左边大一点。我知道,应用程序中屏幕两侧有一些填充,但右侧看起来不太好。有截图 enter image description here

还有我的HTML代码

      <div style="width: 100%!important;background: #E4E2E5;background:-webkit-linear-gradient(bottom, #fff 15%, #E4E2E5);background: linear-gradient(to top, #fff 15%, #E4E2E5);padding: 60px 0 0 0;margin: 0 0 200px 0;">
  <style>
        @import url('https://fonts.googleapis.com/css?family=Roboto:300,400');
        .container{width: 100%;max-width: 850px;}
        </style>
    <table style="font-family:'Roboto';background:white;" class="container">
        <tbody>
            <tr>
                Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent euismod consectetur pulvinar. Vivamus laoreet semper ante, quis iaculis dui fermentum vel. Integer at efficitur nibh. Morbi tempor convallis mauris, et cursus eros volutpat vitae. Nulla sodales nunc sit amet porttitor sollicitudin. Integer hendrerit, lectus vel sagittis elementum, leo nisi condimentum urna, ut tincidunt mauris augue sit amet leo. Sed a ultricies risus. Nam non condimentum est. Aliquam erat volutpat. Etiam placerat velit sit amet sagittis mattis. Cras blandit venenatis venenatis.
            </tr>
        </tbody>
    </table>
  </div>

0 个答案:

没有答案