【问题标题】:why is line-height 100% in html email boilerplate为什么 html 电子邮件样板中的行高为 100%
【发布时间】:2011-12-14 17:18:51
【问题描述】:

html email boilerplate 中,有一个给包装器的#backgroundTable id。行高属性在头部设置为 100%,最终使电子邮件中的所有文本开始相互重叠

#backgroundTable {margin:0; padding:0; width:100% !important; line-height: 100% !important;}

他们为什么要这样做?它似乎并没有增强电子邮件。

【问题讨论】:

  • 查看他们的 GNARLY FEATURES 部分,它解释了为什么它拥有它所拥有的东西。如果这没有帮助,那么我建议向他们发送反馈并提出问题。

标签: html email boilerplate css


【解决方案1】:

来自您链接到的网站:

.ExternalClass, ... {
      line-height: 100%;
 } /* Force Hotmail to display normal line spacing.  
 More on that: http://www.emailonacid.com/forum/viewthread/43/ */

【讨论】:

  • 但 line-height:100% 也在 backgroundTable 中,它环绕着整个电子邮件。
  • 我也一直在研究这条线,我发现line-height: normal 可以工作并且看起来更好(不那么压扁)。所以我改用它。
猜你喜欢
  • 2010-10-17
  • 1970-01-01
  • 1970-01-01
  • 2012-03-01
  • 1970-01-01
  • 2014-12-24
  • 2023-03-08
  • 1970-01-01
  • 2012-02-21
相关资源
最近更新 更多