【发布时间】:2014-12-15 23:42:51
【问题描述】:
我收到的 HTML 电子邮件具有内联样式和一些繁重的内容(迫使 Outlook 看到透明的 png),这导致行长度超过 1000 个字符的标记。文本远低于标准的 80 个字符。
我的 html 发件人服务不接受这 - 我收到了关于行太长的警告,这可能会导致某些客户端出错。
我已经彻底测试了这些电子邮件,并且我没有发现 HTML 本身的呈现有任何问题,但进一步阅读和调查该问题表明,实际上某些服务器可能会因为该长度而拒绝电子邮件,并且可能行缓冲区溢出。它仍然有效吗?我应该担心 html 电子邮件标记长度吗?毕竟,我们正处于 2015 年的边缘。
标记是这样的:
<img src="domain.com/gfx/logo_red.png" style="width: 257px; height: 79px; outline: none; text-decoration: none; -ms-interpolation-mode: bicubic; max-width: 100%; float: none; clear: none; display: inline; line-height: 0px; position: relative; behavior: expression((this.runtimeStyle.behavior='none')&&(this.pngSet?this.pngSet=true:(this.nodeName == 'IMG' && this.src.toLowerCase().indexOf('.png')>-1?(this.runtimeStyle.backgroundImage = 'none', this.runtimeStyle.filter = 'progid:DXImageTransform.Microsoft.AlphaImageLoader(src='' + this.src + '', sizingMethod='image')', this.src = './gfx/spacer.gif'):(this.origBg = this.origBg? this.origBg :this.currentStyle.backgroundImage.toString().replace('url('domain.com/,).replace(')',''), this.runtimeStyle.filter = 'progid:DXImageTransform.Microsoft.AlphaImageLoader(src='' + this.origBg + '', sizingMethod='crop')', this.runtimeStyle.backgroundImage = 'none')),this.pngSet=true)); margin: 0; padding: 0; border: none;" /></a>
【问题讨论】: