twitter-bootstrap 如何在动作链接中实现引导程序
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/19927219/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-21 19:10:21 来源:igfitidea点击:
How to implement bootstrap in an actionlink
提问by Joseph
I would like to implement bootstrap in the following actionlink:
我想在以下操作链接中实现引导程序:
@Html.ActionLink("Create New", "DepartmentView", "Department", null,
new { @style="text-transform:capitalize;" })
回答by Francis
@Html.ActionLink("LinkText", "FooAction", "FooController", null, new { @class = "btn btn-info" })
回答by Renato Mestre
LinkTextcan be " "(space character) too, if you want to show onlya glyphicon, for example.
LinkText可以" "(空格字符)也一样,如果你想显示只有一个glyphicon,例如。
nulland empty("") are not permitted in this case.
null和empty( "") 在这种情况下是不允许的。

