在@ Html.ActionLink mvc asp.net中插入Glyphicons引导程序(Insert Glyphicons bootstrap in @Html.ActionLink mvc

编程入门 行业动态 更新时间:2024-10-27 06:31:32
在@ 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

本文发布于:2023-04-29 06:03:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1335274.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:程序   mvc   asp   ActionLink   Html

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!