Line break in the mailto onclick

北城以北 提交于 2019-11-30 06:18:33

You need to use the ASCII values for line feed/carriage return:

%0A = \n

%0D = \r

%0D%0A = \r\n

Works like a charm.

<a href="mailto:person@somedomain.com?subject=My subject&body=Hello %0D%0A World">Link</a> 

(Spaces added around %0D%0A for clarity. In reality, this could add unwanted white space.)

try using <br/> as a line break

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!