本文介绍了mailto-links和linebreaks在身体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在一个使用%0D%0A :
body =你好,%0D%0AI想要你的帮助!
现场演示:
有关详细信息,请点击此处:
In a mailto link, I am trying to use linebreaks but I failed to do that! I have tried with \n, /n <br> and tried to search for ascii value of enter but I am not getting what am I looking for:
<a href="mailto:[email protected]?subject=Your Subject&body=Hello, <br> I want your help!"> Mail me</a>
Can you guys help?
解决方案
Use %0D%0A:
body=Hello,%0D%0AI want your help!
Live Demo: http://jsfiddle.net/yCte6/1/
More details of this can be found here: http://www.ietf.org/rfc/rfc2368
这篇关于mailto-links和linebreaks在身体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!