在 mailto
链接,我正在尝试使用换行符,但我失败了!我尝试过 \n
, /n
<br>
并尝试搜索 Enter 的 ascii 值,但我没有得到我要找的内容:
<a href="mailto:<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="44372520252276727471042329252d286a272b29" rel="noreferrer noopener nofollow">[email protected]</a>?subject=Your Subject&body=Hello, <br> I want your help!"> Mail me</a>
你们能帮忙吗?
最佳答案
使用%0D%0A
:
body=Hello,%0D%0AI want your help!
现场演示: http://jsfiddle.net/yCte6/1/
更多详细信息可以在这里找到:http://www.ietf.org/rfc/rfc2368
关于html - 正文中的邮件链接和换行符,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15068172/