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?


基础教程推荐
- Bootstrap 模态出现在背景下 2022-01-01
- 检查 HTML5 拖放文件类型 2022-01-01
- 在 contenteditable 中精确拖放 2022-01-01
- Fabric JS绘制具有活动形状的多边形 2022-01-01
- 如何添加到目前为止的天数? 2022-01-01
- fetch 是否支持原生多文件上传? 2022-01-01
- 原生拖动事件后如何获取 mouseup 事件? 2022-01-01
- npm start 错误与 create-react-app 2022-01-01
- Bokeh Div文本对齐 2022-01-01
- 即使用户允许,Gmail 也会隐藏外部电子邮件图片 2022-01-01