hii friend ,我有一个问题,请尝试解决这个问题
msg.Body = "Hi , " + txtrfname.Text.Trim() + "!\n" + " Your RCNO is " + rcno + "!\n Thank you for showning intrasted and registration Please <a href='" + activationurl + "'>click hear to activate </a> your account and enjoy our services \n Thank you.";
我在 C# 脚本语言中有这段代码,现在我想在这段代码中加粗“rcno”,因为当用户收到这封电子邮件时,他们可以看到如下所示 “您好,bhavesh 您的 RCNO 是 1234 感谢您显示 intrasted 和注册 请单击“收听”以激活您的帐户并享受我们的服务\n 谢谢。”;
听说我想要粗体的 1234, 那么我该如何在编码中做到这一点呢??
最佳答案
使用 <strong>
:
msg.Body = "Hi , " + txtrfname.Text.Trim() + "!\n" +
" Your RCNO is <strong>" + rcno + "</strong>!\n Thank you for
showning intrasted and registration Please <a href='" + activationurl +
"'>click hear to activate </a> your account and enjoy our services \n Thank you.";
The HTML Strong Element
<strong>
gives text strong importance, and is typically displayed in bold.
旁注:
另一种可能性是使用 <b>
.查看区别 here .
关于c# - 在 C# 的编码端使用粗体,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37096899/