如何将 class 和样式添加到路由到某个部分的 HTML.ActionLink

How do you add a class and style to an HTML.ActionLink which routes to a section

我有以下操作 link,它转到视图中的特定部分。

@Html.ActionLink("Morn Info", "Solutions", "Home", null, null, "EOB",null, null)

如何向此 Html.ActionLink 添加 样式和 class 使其看起来像 button

我觉得我可以添加...

new { @class = "button btn-flat", @style = "border-radius: 14px;" }

但我无法让它像这样工作...

   @Html.ActionLink("Early Out Billing", "Solutions", "Home", new { @class = "button btn-flat", @style = "border-radius: 14px;" }, null, "EOB", null, null)

htmlAttributes 是 ActionLink 构造函数中的最后一个值。

@Html.ActionLink("Morn Info", 
"Solutions", 
"Home", 
null, 
null, 
"EOB", 
null, 
new { @class = "button btn-flat", @style = "border-radius: 14px;" })