Asp.net:使 div 内容部分加粗
Asp.net: make div content partially bold
我有一个 div,其 innerHtml 在我的 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";
这里我想把"ACTIVATE"这个词加粗或者说一些文字应该和上面的语句不同color/font。我该怎么做?
可能很简单html:
feedbackRow.InnerHtml = "<strong>Activate</strong> ..."
您可以将要加粗的文本放在 <b>
或 <strong>
标签之间。
<b>text</b>
或
<strong>text</strong>
我有一个 div,其 innerHtml 在我的 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";
这里我想把"ACTIVATE"这个词加粗或者说一些文字应该和上面的语句不同color/font。我该怎么做?
可能很简单html:
feedbackRow.InnerHtml = "<strong>Activate</strong> ..."
您可以将要加粗的文本放在 <b>
或 <strong>
标签之间。
<b>text</b>
或
<strong>text</strong>