【发布时间】:2015-07-20 20:58:29
【问题描述】:
我一直在使用 html 电子邮件模板。我的工作快要结束了。该模板在市长电子邮件客户端中看起来相当不错。但是 Outlook 2007/2010/2013 存在问题。这三个人不尊重我模板的最大宽度。我真的不知道为什么会这样。
你有什么想法吗?
任何建议将被认真考虑。谢谢。
<body style="margin:0; font-size:13px; font-family:'Trebuchet MS', Helvetica, Verdana, Arial;" bgcolor="#bb9dd8">
<table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
<td bgcolor="#bb9dd8">
<!-- //Begin Main Container\\ -->
<table class="mainContainer" style="margin-top:20px;" width="640px" align="center" cellspacing="0" cellpadding="0" border="0">
<!-- //From here begin header and the layout structure\\ -->
那是定义最大宽度的代码。谢谢。
【问题讨论】:
-
有什么问题?是否低于 100% 或更多?如果更多,请使用 table-layout:fixed;为了冻结你的桌子的宽度
-
谢谢。想法是什么?要将桌子固定到特定尺寸?无论如何,如果在询问 Outlook 的问题。是模板需要超过 640 像素,这是想要的最大宽度。
-
这个想法是,没有你的完整代码,我指向了这个w3.org/wiki/CSS/Properties/table-layout。此外,对于 Outlook,您可以尝试使用 width:expression(...) 旧 IE(websitecodetutorials.com/code/ie/ie6-min-max-height-width.php 或您使用“IE CSS EXPRESSION”找到的任何其他链接,例如来自google.fr/search?q=ie+css+expression 的mark-story.com/posts/view/css-expressions-in-ie-and-scoping
标签: html css outlook html-email