是否可以在电子邮件中折叠/展开 DIV?哪些客户支持这个? [英] Is it possible to collapse/expand a DIV within an email? What clients support this?
问题描述
我有一个通过电子邮件发送警报的警报系统.我想包含诊断信息,但只有在最终用户点击 [+] 按钮时才使其可见.
I have an alerting system that sends out alerts by email. I would like to include diagnostic information but only make it visible if the end user clicks a [+] button.
这可以在电子邮件中完成吗?我可以不使用 Javascript 而只使用 CSS 吗?
Is this possible to do in email? Can I do it without using Javascript and only CSS?
如果有帮助,我的大多数客户都使用 Outlook、iPhone 或黑莓
If it helps, most of my clients use Outlook, iPhones, or Blackberries
推荐答案
很可能,不是.由于病毒和其他原因,很多客户端都禁用了 JS.
Most likely, not. JS has been disabled in a lot of clients, due to viruses and stuff.
一种解决方法可能是包含一个包含所有详细信息的完整错误页面的 URL,并编辑您的邮件以仅汇总诊断信息.
A workaround might be to include a URL to the full error-page with all details, and edit your mail to only summarize the diagnostic information.
此外,您可以尝试看看是否可以使用 :hover
CSS 来显示带有一些讨厌的选择器的元素... CSS3 样式?http://www.campaignmonitor.com/css/
Also, you could try to see if you can use :hover
CSS, to show the element with some nasty selectors... CSS3-style? http://www.campaignmonitor.com/css/
这篇关于是否可以在电子邮件中折叠/展开 DIV?哪些客户支持这个?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!