Mailto:正文格式化 [英] Mailto: Body formatting

查看:109
本文介绍了Mailto:正文格式化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


可能重复:

mailto链接多条线条


只是一个快速的问题。我正在为一个慈善机构创建一个网站,他们在网站上有一个部分,人们可以提出一些建议,他们如何为自己的事业筹集更多的钱。他们的网站只是简单的HTML,JS和CSS,以保持其重量轻。我添加了一个 mailto:,这将允许人们向他们发送一封电子邮件,但他们想要一些更多的信息,如他们的姓名和联系方式。我想知道是否有办法格式化身体,以便有新行:

  name:
电子邮件:
电话:
邮政地址:

谢谢! >

这是我现在的 mailto 。欢迎任何帮助或建议:

 < a href =mailto:someone@example.com?subject =建议和身体=您的%20suggestions%20are%20really%20important%20to%20us%20,谢谢!>发送建议!< / a> 


解决方案

使用%0D%0A 为您的身体换行符





示例(演示):

 < a href =mailto:someone@example.com?subject = Suggestions& body = name: %0D%0Aemail:> test< / a> 
^^^^^


Possible Duplicate:
mailto link multiple body lines

Just a quick question. I am creating a website for a charity and they have a section on the site where people can give some suggestions for how they could raise more money for their cause. Their site is just plain HTML, JS and CSS to keep it light-weight. I added a mailto: that will allow people to send them an e-mail, but they would like some more information like their name and their contact details. I want to know if there is a way to format the body so that there are new lines:

name: 
email:
tel:
postal address:

thank you!

Here is what my mailto looks like now. any help or suggestions are welcome:

<a href="mailto:someone@example.com?subject=Suggestions&body=Your%20suggestions%20are%20really%20important%20to%20us%20,thanks!">Send suggestions!</a>

解决方案

Use %0D%0A for a line break in your body

Example (Demo):

<a href="mailto:someone@example.com?subject=Suggestions&body=name:%0D%0Aemail:">test</a>​
                                                                  ^^^^^^

这篇关于Mailto:正文格式化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆