C# Asp.net:使div内容部分加粗
我有一个div,它的innerHtml是在我的c代码(.cs)中设置的C# Asp.net:使div内容部分加粗,c#,html,asp.net,C#,Html,Asp.net,我有一个div,它的innerHtml是在我的c代码(.cs)中设置的 .cs feedbackRow.InnerHtml = "Activate your account to access reward points and unlock deals, discounts and bigger savings!.</br>You will find an ACTIVATE link within the body of the email.If you did not rec
.cs
feedbackRow.InnerHtml = "Activate your account to access reward points and unlock deals, discounts and bigger savings!.</br>You will find an ACTIVATE link within the body of the email.If you did not recevied the email into your inbox then please check your spam folders. </br>Thanks again for using ABC";
feedbackRow.InnerHtml=“激活您的帐户以访问奖励积分并解锁交易、折扣和更大的储蓄!”您将在电子邮件正文中找到一个激活链接。如果您没有在收件箱中收到电子邮件,请检查您的垃圾邮件文件夹。再次感谢您使用ABC”;
在这里,我想用粗体的“激活”字,或者说在上面的语句中,一些文本应该是不同的颜色/字体。我该怎么做?可能是简单的html:
feedbackRow.InnerHtml = "<strong>Activate</strong> ..."
feedbackRow.InnerHtml=“激活”…”
您可以将要加粗的文本放在
或
标记之间
<b>text</b>
文本
或
文本
<b>text</b>
<strong>text</strong>