【发布时间】:2015-01-27 09:30:01
【问题描述】:
我只想在我的 ActionLink 中设置部分文本的样式,我需要加号为粗体。在纯 html 中我可以这样做。
<a class="topMenu" href="#"><span style="font-weight:bold;">+</span>Invite User</a>
如果像这样使用 ActionLink 试试:
@Html.ActionLink("<span style="font-weight:bold;">+</span>Invite User", "Invite", "Account", new { @class = "topMenu" })
它会按原样呈现,就像一行文本一样。
是否有可能让它像纯HTML一样的样式?
【问题讨论】:
标签: html asp.net-mvc html-helper html.actionlink