在我的应用程序中,我们将通过向用户发送电子邮件来获取反馈。因此,如果用户填写字段并提交,那么我会将其存储在我的数据库中。
我准备了一封 html 邮件,如下所示。
但这里的问题是我无法在邮件中显示评级星星。这需要内联 css,但我无法将该 css 放入内联中,因为其中包括 onhover css。
那么有没有什么办法可以通过电子邮件发送评级呢?
有没有办法让CSS悬停内联
先感谢您。
尝试用以下命令来统治你的内联CSS!important
在你的悬停CSS中。
然而,从更大的角度考虑 - html 电子邮件不完全支持表单,因此根据您的列表,您可能有 20% 以上无法使用它们。 (形成支撑图here http://css-tricks.com/html-forms-in-html-emails/ or here http://www.campaignmonitor.com/blog/post/2435/how-forms-perform-in-html-emai/)
考虑到这一点,为了获得 100% 的支持,大多数电子邮件营销人员会将他们发送到托管表单的登陆页面。另一种选择是使用简单的 href 标签和 URL 参数来捕获基本信息。像这样的事情:
<!-- use star images that pass a custom url with user info -->
<a href="http://[email protected] /cdn-cgi/l/email-protection&rating=1"><img alt="1" src="" width="40" height="40" style="margin: 0; border: 0; padding: 0;"></a>
<a href="http://[email protected] /cdn-cgi/l/email-protection&rating=2"><img alt="2" src="" width="40" height="40" style="margin: 0; border: 0; padding: 0;"></a>
<a href="http://[email protected] /cdn-cgi/l/email-protection&rating=3"><img alt="3" src="" width="40" height="40" style="margin: 0; border: 0; padding: 0;"></a>
<a href="http://[email protected] /cdn-cgi/l/email-protection&rating=4"><img alt="4" src="" width="40" height="40" style="margin: 0; border: 0; padding: 0;"></a>
<a href="http://[email protected] /cdn-cgi/l/email-protection&rating=5"><img alt="5" src="" width="40" height="40" style="margin: 0; border: 0; padding: 0;"></a>
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)