如何专门针对 Outlook.com

Bui*_*nHD 2 email outlook html-email

我曾经使用代码:[owa] .classname{css here}; 如果我填写“css here”,例如显示:none; 该课程仅针对 Outlook.com 隐藏。

但这段代码对我来说不再有用了。因此,我的电子邮件中的一部分内容没有很好地显示。

有谁知道是否有解决方法?

Ted*_*oas 6

在你的标签中试试这个<style>

[class="x_foo"] {
  css here
}
Run Code Online (Sandbox Code Playgroud)

Outlook.com 在类名中添加前缀,x_但在属性选择器上不这样做。因此<div class="foo">可以定位并且[class="x_foo"]仅适用于 Outlook.com。

我不相信该[owa]黑客行为不再有效,因此可以安全地将其删除。