在html电子邮件中是否支持calc()? [英] Is calc() supported in html email?
问题描述
caniuse.com 显示 calc()
可以在除Opera之外的所有现代浏览器中使用。但是在电子邮件客户端对 calc()
的支持有多好?
请提供一个指向相关博客或指南的链接。
编辑
我是指CSS calc()
函数
EDIT :对于Css Calc(),我会说,也许你可以在Apple Mail或iOS本机客户端使用它,但即使这些也不太可能。所有其他人几乎没有CSS3支持。请参见 https://www.campaignmonitor.com/css/ 了解可用的CSS和HTML电子邮件中的HTML标记。诚然,这不是在HTML电子邮件中的工作的Be-All列表,但是由于Calc()甚至没有列出,我会将其视为no。
EDIT2 :使用Email On Acid检查结果的简单表html电子邮件,并得到令人惊讶的结果。
< a href =https://www.emailonacid.com/app/acidtest/display/summary/hM0n3RkP89L9bfWOtXlTpQR238VwFFotgq4PkQpvBOpUf/shared =nofollow> https://www.emailonacid.com/app/acidtest/display/summary/ hM0n3RkP89L9bfWOtXlTpQR238VwFFotgq4PkQpvBOpUf / shared
基本上看起来像是适用于:
Apple Mail
Outlook 2011(苹果版)
Thunderbird
Android 4本机客户端
iOS原生
Aol(依赖浏览器)
$ b b
Outlook.com(依赖浏览器)
(GMail也会接受它 - 但必须内联)
这是我最好的想法,但考虑到,它仍然不是一个优雅的解决方案,因为它完全失败在许多流行的电子邮件客户端 - 包括每个webmail应用程序GMail应用程序,雅虎应用程序等)。这可能是一个可行的解决方案,取决于你的观众,但一般来说,我不会推荐。
caniuse.com shows calc()
can be used today in all modern browsers except Opera. But how good is the support for calc()
in email clients?
Please provide a link to blogs or guides which talk about this.
EDIT
I am referring to the CSS calc()
function
EDIT: For Css Calc(), I would say that maybe you could use it in Apple Mail or iOS native client, but even those are not likely. All others have almost no CSS3 support. See https://www.campaignmonitor.com/css/ for a pretty good list of available CSS and HTML tags in HTML email. Admittedly, this is not the Be-All list of what works in HTML emails, but as Calc() is not even listed, I would view this as a no.
EDIT2: Did a simple table html email to check results using Email On Acid and got surprising results.
https://www.emailonacid.com/app/acidtest/display/summary/hM0n3RkP89L9bfWOtXlTpQR238VwFFotgq4PkQpvBOpUf/shared
Basically looks like it works on:
Apple Mail
Outlook 2011 (apple version)
Thunderbird
Android 4 native client
iOS native
Aol (browser dependant)
Outlook.com (browser dependant)
(GMail will also accept it! - but must be inlined)
This is better then I thought, but considering, it still doesn't seem to be that elegant a solution as it fails completely in many of the popular email clients - including every webmail app (GMail app, Yahoo app, etc). It may be a viable solution depending on your audience, but in general, I would not recommend.
这篇关于在html电子邮件中是否支持calc()?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!