@Html.ActionLink 添加样式 html标签

@Html.ActionLink(item.MessageTitle, "Detail", "News",
new { MessageId = item.MessageId }, new { @class = "badge badge-warning" })

 

//html

<a class="badge badge-warning" <a class="badge badge-warning" href="/News/Detail?MessageId=70">

你可能感兴趣的:(action)