【发布时间】:2015-07-02 15:27:38
【问题描述】:
我有以下操作链接,它指向视图中的特定部分。
@Html.ActionLink("Morn Info", "Solutions", "Home", null, null, "EOB",null, null)
如何向此Html.ActionLink 添加样式和类,使其看起来像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)
【问题讨论】:
标签: asp.net-mvc asp.net-mvc-routing html.actionlink