简体   繁体   中英

Inline CSS stripped from email

From emails that I send (using Gmail's mail server), Yahoo manipulates inline CSS.

This is the original style I applied (as inline):

background: rgb(248, 204, 204) none repeat scroll 0% 0% / auto padding-box border-box;

But what I see in the email (Yahoo inbox) is this:

background: rgb(248, 204, 204) none repeat scroll 0% 0% auto

Why does this happen, and how can I avoid this? Thanks in advance.

Yahoo ignores certain css properties, especially css shorthand properties, that works on browsers and other email clients, but not effectively on yahoo.

Under such cases, you need to convert the shorthand properties into expanded properties for them to work on yahoo.

You can read the below link to get further details for the same.

http://www.emailonacid.com/blog/details/C13/yahoo_betas_embedded_css_may_affect_your_layout

Hope this helps.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM