我想在我的mailto正文中插入换行符.我尝试了%0A,%0D和%0D%0A.没有什么对我有用.我在Mac OSX上使用Google Chrome在Gmail,Yahoo,Apple Mail,Outlook 2010,Outlook.com和Thunderbird上进行了测试.
有什么帮助吗?
这是我的代码:
<a href="mailto:email@mycompany.com?subject=Subscribe&body=Lastame%20%3A%0D%0A%20Firstname%20%3A"><img alt="Subscribe" class="center" height="50" src="subscribe.png" style="width: 137px; height: 50px; color: #4da6f7; font-size: 20px; display: block;" width="137"></a>
Run Code Online (Sandbox Code Playgroud)