HTML Email - Table Position

白昼怎懂夜的黑 提交于 2019-12-12 05:37:40

问题


I have just started creating HTML emails. I am creating my latest one at http://www.jn-design.co.uk/misc/Swagelok/email.html

It displays fine in browsers , until IE, even 9 does not agree with it. I havent looked at the others yet. The correct display will be able to be seen within firefox or chrome.

Any ideas as to why half of the table has floated to the right?


回答1:


Try putting

<!doctype html>

at the top of your document, before the <html> tag




回答2:


You should add: align="center" in place of: align="left" on line 22.

I've done my fair share of HTML emails in my day!

Also add a doctype as well.




回答3:


For the paragraph padding, why don't you try setting the margins individually. I will also recommend Boilerplate since it contains a lot of solutions to the quirks of each email client.



来源:https://stackoverflow.com/questions/15231669/html-email-table-position

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!