我正在构建一个 HTML 通讯。
要专门针对低于或等于 Outlook 2013 的所有 Outlook 版本,我们可以使用此代码:
<!--[if lte mso 15]>
code goes here
<![endif]-->
这里的15是指Outlook 2013的版本号。
Outlook 365 的条件标记是什么?
我将如何专门针对 Outlook 365 而不是任何 future 的 Outlook 版本,如果它们可能出现以及何时出现?
最佳答案
您可以使用大于或等于运算符 (gte) 而不是小于。 (LTE)
<!--[if gte mso 9]>
<style>
/* Target Outlook 2007 and up */
</style>
<![endif]-->
这是 conditional comments 的列表以备将来引用。
关于html - Outlook 365 的条件标记,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24258815/