我尝试为MVC操作链接添加Bootstrap Glyphicon组件,但我不能添加它,请给我一个解决方案。
行动链接
@Html.ActionLink("Add", null/*"BlankEditorRow"*/, null, new { id = "addItem", @class = " btn-xs" })
Plus Glyph
<span class="glyphicon glyphicon-plus"></span>
答案 0 :(得分:2)
将glyphicon glyphicon-plus
课程添加到ActionLink
,如下所示。希望这会对你有所帮助。
@Html.ActionLink("Add", null/*"BlankEditorRow"*/, null, new { id = "addItem", @class = "glyphicon glyphicon-plus btn-xs" })