简体   繁体   English

谁能帮我弄清楚为什么我的HTML电子邮件在IE / Chrome中看起来有所不同?

[英]Can anyone help figure out why my HTML email looks different in IE/Chrome?

I've been designing an HTML e-mail template, and have a few bugs that I haven't been able to solve. 我一直在设计HTML电子邮件模板,但有一些我无法解决的错误。 Here's my page: 这是我的页面:

  1. When I view the page in IE, the right most column has a really large right margin that I can't seem to get rid of. 当我在IE中查看页面时,最右边的列具有很大的右边距,我似乎无法摆脱。 I have tried setting margin-right: 0px. 我试过设置margin-right:0px。

  2. When viewed in Chrome, the FB badge doesn't stay in the bottom right fully. 在Chrome中查看时,FB徽章不会完全位于右下角。 Rather, it slightly floats above. 相反,它稍微浮在上面。 CSS floats are not an option in HTML emails. HTML电子邮件中不能使用CSS浮动。

Any ideas? 有任何想法吗? I'd greatly appreciate any help. 我将不胜感激任何帮助。

Some notes: yes - nested tables. 一些注意事项:是的-嵌套表。 For those unaware, in order to ensure the html/css formatting isn't stripped out, tables are a necessity for HTML emails. 对于那些不知道的人,为了确保不删除html / css格式,对于HTML电子邮件,表是必需的。 I originally coded this with pure CSS, but to no avail (doesnt render across major clients). 我最初使用纯CSS对此进行了编码,但无济于事(在主要客户端上均不渲染)。

  1. you've set your td width to 100px.. 您已将td宽度设置为100px。
  2. make a new column and set the td to valign="bottom" and align="right" 新建一个列,并将td设置为valign="bottom"align="right"

Regarding your problem with IE, your web-page does not have a DOCTYPE. 关于IE的问题,您的网页没有DOCTYPE。 As a result, quirks mode is activated. 结果,激活了怪癖模式。 In quirks mode, the page is rendered differently. 在怪癖模式下,页面呈现方式有所不同。 To disable quirks mode, add a DOCTYPE at the top of your web-page: 要禁用怪癖模式,请在网页顶部添加DOCTYPE:

<!doctype html>

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 无法弄清楚为什么这个页面在Firefox中看起来很糟糕? 在Chrome / IE中看起来不错 - Can't figure out why the page looks horrible in Firefox? Looks good in Chrome/IE 谁能帮我弄清楚为什么我不能将我的粘性顶部导航栏更改为左侧? CSS - can anyone help me figure out why can't I change my sticky top navbar to left? CSS 为什么这个html / css在firefox和ie中看起来不同? - Why this html/css looks different in firefox and ie? 谁能帮我找出这个图库插件为何具有这种方式? - Can anyone help me figure out why this gallery plugin is behaving this way? 有人可以看到为什么该导航栏与IE和FF相比在Chrome上看起来有所不同吗? - Can someone see why this nav bar looks different in chrome compared to IE and FF? IE中的字体与Firefox和Chrome中的字体不同...为什么? - Font looks different in IE than it does in Firefox and Chrome…why? 特定元素正确放置在IE和Chrome中,但不能正确放置在Firefox中……我不知道为什么吗? - Specific Element positioned correctly in IE and Chrome, but not in Firefox…and I can't figure out why? IE浏览器中的CSS与Chrome的混乱......任何人都可以帮我在Chrome中右键排列这些内容吗? 它适用于IE - CSS in IE vs Chrome woes… Can anyone help me line these up on the right in Chrome? It works in IE 谁能弄清楚为什么我的jquery函数上下滑动无法在我的第一个li标签上正常工作? - Can anyone figure out why my jquery function slide up and down is not working properly on my first li tag? 有人可以帮我弄清楚为什么我的导航链接在使用内联块时会堆叠吗? - Can someone help me figure out why my navigation links stacked when using inline-block?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM