首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网络技术 > 网络基础 >

xhtml mailto使用说明补给

2012-08-15 
xhtml mailto使用说明补充在使用mailto时,需要为邮件追加标题和内容。按照html中的使用方法:a hrefmailt

xhtml mailto使用说明补充

在使用mailto时,需要为邮件追加标题和内容。

按照html中的使用方法:<a href="mailto:test@test.com?subject=test&body=test content">send mail</a>

结果运行时提示错误:The reference to entity "body" must end with the ';' delimiter

?

原来在xml格式的文件中“&”需要转义,转义表如下:

修改为<a href="mailto:test@test.com?subject=test&amp;body=test content">send mail</a>便可以了。

?

&lt;

<

小于号

&gt;

>

大于号

&amp;

&

&apos;

'

单引号

&quot;

"

双引号

热点排行