在@ Html.ActionLink mvc asp.net中插入Glyphicons引导程序(Insert Glyphicons bootstrap in @Html.ActionLink mvc asp.net)
会在下面的代码中输入Glyphicons Boostrap而不是“Edit”。 你能举个例子吗?
@Html.ActionLink("Edit", "Edit", new { id = Model.id_rod }) |提出图像而不是写作。
Would enter Glyphicons Boostrap instead of "Edit" in the code below. Could you give me an example to do.
@Html.ActionLink("Edit", "Edit", new { id = Model.id_rod }) |To bring up the image instead of writing.
最满意答案
如果使用Bootstrap 3:
<a href="@Url.Action("Edit", new { id = Model.id_rod })"> <i class="glyphicon glyphicon-pencil"></i> <span class="sr-only">Edit</span> </a>请注意,使用sr-only将允许屏幕阅读器和搜索引擎的用户知道该链接的用途。
If using Bootstrap 3:
<a href="@Url.Action("Edit", new { id = Model.id_rod })"> <i class="glyphicon glyphicon-pencil"></i> <span class="sr-only">Edit</span> </a>Note the use of sr-only will allow users of screen readers and search engines to know what the link is for.
更多推荐
Edit,Glyphicons,Boostrap,id_rod,Model,电脑培训,计算机培训,IT培训"/> <meta na
发布评论