插入Glyphicons引导在@ Html.ActionLink MVC asp.net [英] Insert Glyphicons bootstrap in @Html.ActionLink mvc asp.net

查看:153
本文介绍了插入Glyphicons引导在@ Html.ActionLink MVC asp.net的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

将进入,而不是在下面的code编辑Glyphicons自举。你能给我一个例子做的。

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 }) |

要调出图片代替文字。

推荐答案

如果使用引导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-仅将允许屏幕阅读器和搜索引擎的用户知道该链接的内容。

Note the use of sr-only will allow users of screen readers and search engines to know what the link is for.

这篇关于插入Glyphicons引导在@ Html.ActionLink MVC asp.net的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆