【问题标题】:Can't add the Bootstrap Glyphicon Components for the MVC action link无法为 MVC 操作链接添加引导 Glyphicon 组件
【发布时间】:2016-01-07 17:44:51
【问题描述】:

我尝试为 MVC 操作链接添加 Bootstrap Glyphicon 组件,但我无法添加,请给我一个解决方案。

动作链接

 @Html.ActionLink("Add", null/*"BlankEditorRow"*/, null, new { id = "addItem", @class = " btn-xs" })

Plus 字形

 <span class="glyphicon glyphicon-plus"></span>

【问题讨论】:

标签: asp.net-mvc twitter-bootstrap asp.net-mvc-4 actionlink glyphicons


【解决方案1】:

glyphicon glyphicon-plus 类添加到ActionLink,如下所示。希望这会对你有所帮助。

 @Html.ActionLink("Add", null/*"BlankEditorRow"*/, null, new { id = "addItem", @class = "glyphicon glyphicon-plus btn-xs" })

【讨论】:

    猜你喜欢
    • 2017-04-09
    • 2018-03-17
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-03-15
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多