为什么 Gmail 会阻止电子邮件中的 CSS?

2022-01-23 00:00:00 html-email gmail css

我在电子邮件中使用了 CSS 并将其发送出去.

I used CSS in my email and sent it out.

当我在 Gmail 中收到电子邮件时,所有 CSS 都被禁用;但是,当我在 Thunderbird 或 Outlook 中检索到电子邮件时,一切正常.

When I received the email in Gmail, all the CSS was disabled; however, when I retrieved the email in thunderbird or outlook, everything is OK.

我该如何解决这个问题?

How would I fix this?

推荐答案

Gmail 不会完全阻止 CSS.它仍然支持内联样式.为什么它不支持样式块,我不知道.要对各种 webmail 和电子邮件客户端中的 CSS 支持有一个很好的概述,这里有一个很好的.http://www.campaignmonitor.com/css/

Gmail doesn't block CSS totally. It still supports inline style. Why doesnt it support style block, I've no idea. To have a good overview of CSS support in various webmail and email clients, here's a good one. http://www.campaignmonitor.com/css/

相关文章