Cam*_*ron 39 asp.net-mvc actionlink
如何将css类添加到此actionlink?我已经读过你这样做new { class = button }但我不知道把它放在我的actionlink中:
<%= Html.ActionLink("View Performances", "Details", "Productions",
new { name = item.show , year = item.year }, null) %>
Run Code Online (Sandbox Code Playgroud)
Bal*_*a R 85
你可以试试
<%= Html.ActionLink("View Performances", "Details", "Productions",
new { name = item.show , year = item.year },
new {@class = "button"}) %>
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
53750 次 |
| 最近记录: |