mailto-links和linebreaks在身体 [英] mailto-links and linebreaks in body
本文介绍了mailto-links和linebreaks在身体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在一个 mailto
链接中,我尝试使用换行符,但是我没有做到!我尝试了 \\\
,
/ n
< br>
并试图搜索输入的ascii值,但我没有得到我在找什么:
< a href =mailto:sadaf2605@gmail.com?subject = Your Subject& body = Hello,< br>我想要你的帮助!>邮寄给我< / a>
你们能帮忙吗?
解决方案使用
%0D%0A
: body =你好,%0D%0AI想要你的帮助!
现场演示: http://jsfiddle.net/yCte6/1/
有关详细信息,请点击此处: http:// www.ietf.org/rfc/rfc2368
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:sadaf2605@gmail.com?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在身体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文