Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/34.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
是否将favicon添加到ASP.NET MVC中的Html.ActionLink?_Html_Asp.net_.net_Model View Controller - Fatal编程技术网

是否将favicon添加到ASP.NET MVC中的Html.ActionLink?

是否将favicon添加到ASP.NET MVC中的Html.ActionLink?,html,asp.net,.net,model-view-controller,Html,Asp.net,.net,Model View Controller,我想在我的“新建”按钮上添加一个“+”图标。我的代码当前显示按钮外的加号按钮。我希望它在按钮里面。我怎样才能做到这一点 <p> <i class="fa fa-plus"></i> @Html.ActionLink("Create New", "Create", "PositionController", new { @class = "btn btn

我想在我的“新建”按钮上添加一个“+”图标。我的代码当前显示按钮外的加号按钮。我希望它在按钮里面。我怎样才能做到这一点

<p>
    <i class="fa fa-plus"></i> @Html.ActionLink("Create New", "Create", "PositionController", new { @class 
     = "btn btn-success" })
</p>

@ActionLink(“新建”、“创建”、“位置控制器”、新建{@class
=“btn btn成功”})


使用
锚定
标记可以实现这一点

<a href="@Url.Action("actionName", "controllerName")" class="btn btn-success">
    <i class="fa fa-plus"></i>
</a>