我有一个div,其内部HTML在我的c#代码(.cs)中设置。
<div id="feedbackRow" runat="server"></div>
的.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";
在这里,我想做出大胆的&#34;激活&#34;单词或说一些文字应该在上面的语句中使用不同的颜色/字体。我该怎么做?
答案 0 :(得分:1)
您可以将要加注的文字放在<b>
或<strong>
标记之间。
<b>text</b>
或
<strong>text</strong>
答案 1 :(得分:0)
也许简单的html:
feedbackRow.InnerHtml = "<strong>Activate</strong> ..."