Why is Gmail blocking CSS in emails?(为什么 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/
这篇关于为什么 Gmail 会阻止电子邮件中的 CSS?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:为什么 Gmail 会阻止电子邮件中的 CSS?


- 如何向 ipc 渲染器发送添加回调 2022-01-01
- 使用 iframe URL 的 jQuery UI 对话框 2022-01-01
- 我不能使用 json 使用 react 向我的 web api 发出 Post 请求 2022-01-01
- 如何调试 CSS/Javascript 悬停问题 2022-01-01
- 为什么我的页面无法在 Github 上加载? 2022-01-01
- 在不使用循环的情况下查找数字数组中的一项 2022-01-01
- 是否可以将标志传递给 Gulp 以使其以不同的方式 2022-01-01
- 为什么悬停在委托事件处理程序中不起作用? 2022-01-01
- 从原点悬停时触发 translateY() 2022-01-01
- 如何显示带有换行符的文本标签? 2022-01-01