【发布时间】:2020-07-25 22:02:38
【问题描述】:
我的代码:
<a href="mailto:anything@any.com?subject=This%20is%20Subject&body=Hello%0D%0A%0D%0Aworld..">
click here to mail me
</a>
预期输出:
我现在得到的输出:
我尝试使用%0D%0A,但它不起作用。我还尝试了here 的一些 java 脚本方法,但这些方法似乎不起作用。
我用来检查 mailto 的应用程序:输出是我 android 设备上的默认 Gmail 应用程序。
编辑[解决方案]
只需使用<br> 标签就可以很好地与第三方应用程序(如 gmail for android)配合使用。
【问题讨论】:
标签: javascript php android html email