简体   繁体   English

使用mailto(JavaScript)发送电子邮件-更改邮件正文中特定字符的字体大小或将其设置为粗体

[英]Send email using mailto (JavaScript) — change the font size of the specific characters inside the mail body or make it BOLD

Is it possible to insert a BOLD/bigger characters when using mailto in javaScript? 在javaScript中使用mailto时是否可以插入粗体/较大字符?

Username: user1 Password: pass1 用户名:user1密码:pass1

I want to emphasize or highlight the user1 and pass1.. I've tried styling in html and css, and also in JavaScript using .bold() but it's not working.. Anyone can help me? 我想强调或突出显示user1和pass1。我尝试使用html和css以及使用.bold()的JavaScript进行样式设置,但均无法正常工作。有人可以帮助我吗?

The mailto option has the following restrictions: mailto选项具有以下限制:

  1. you are opening the email address to spammers. 您正在向垃圾邮件发送者打开电子邮件地址。 This is the first thing that they look for to add names and addresses to their spam lists 这是他们要在其垃圾邮件列表中添加名称和地址的第一件事
  2. you must have your e-mail client setup to send html content otherwise any e-mail is sent as plain text 您必须先设置电子邮件客户端才能发送html内容,否则所有电子邮件将以纯文本格式发送
  3. e-mail clients understand a small subset of css. 电子邮件客户端了解CSS的一小部分。 You need to use the style attribute ie <p style='color:red;'>This is an alert</p> 您需要使用样式属性,即<p style='color:red;'>This is an alert</p>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM