how to generate Html.ActionLink with icon

后端 未结 6 2181
故里飘歌
故里飘歌 2020-12-14 15:30

I\'m starting to learn ASP.NET MVC, and have a problem, how generate code with Html.ActionLink like this:



        
6条回答
  •  北荒
    北荒 (楼主)
    2020-12-14 15:30

    This example may help you.

    @Html.ActionLink(" ", "Controller", new { id = item.Id }, new { @class = "btn
                     btn-success btn-circle fa fa-plus-circle", title = "Confirm" })
    

    this way you will have an icon without the text.

提交回复
热议问题