html - 正文中的邮件链接和换行符

标签 html

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/

相关文章:

html - 设置 Bootstrap Card 中内容的高度,使其填满整个卡片 block

javascript - 在 HTML 属性中添加 CR 或 LF

HTML 图像网格图像不在网格中

python - BeautifulSoup:从 html 获取 css 类

html - 如何让h1、h2看起来像普通的段落文字

html - 制作 CSS 动画移动汉堡菜单

html - 在 Razor View 中的三元 if 运算符内分配变量

javascript - 无法使用 highlight.js 高亮显示 xml 语法

python - 如何在某些文本之前将 XPath 写入文本?

javascript - 在给定时间停留多个下拉页面