Heim  >  Fragen und Antworten  >  Hauptteil

Im Jahr 2022 Outlook.com mit CSS/bedingten Anweisungen ansprechen?

Ich habe ein ernstes Problem beim Versenden von E-Mails, insbesondere mit der Browserversion von Outlook (Webmail).

Alle Lösungen, die in der Vergangenheit funktionierten, funktionieren im Jahr 2022 nicht mehr:

[owa] .foo {
  background-color: red !important;
}
[class="x_foo"] {
  background-color: red !important;
}

Ich habe auch verschiedene bedingte Tags ausprobiert, aber sie funktionieren auch nicht im Browser:

<!--[if mso]>
    <style>
        .example-class {
            /* Outlook-specific CSS goes here. */
        }
    </style>
<![endif]-->

Gibt es im Jahr 2022 bekannte Browser-Hacks für Outlook (Outlook.com)?

P粉155710425P粉155710425175 Tage vor376

Antworte allen(1)Ich werde antworten

  • P粉788571316

    P粉7885713162024-03-29 18:12:30

    Outlook.com 网络邮件可以像这样定位:

    [class~="x_your-class-name"] {
      /* Replace this comment with your styles */
    }

    根据“如何定位电子邮件”https://howtotarget.email/

    还有其他特定于 Outlook Webmail 的问题,因此请务必首先检查这个常见问题:Outlook 从 中剥离样式

    Antwort
    0
  • StornierenAntwort