如何获取ActionLink的工具提示?

时间:2011-03-07 16:21:53

标签: c# asp.net asp.net-mvc-3

我认为这应该很简单,但我找不到选项!

如何为我的ActionLink获取tool-tip/alt

<%=Html.ActionLink("New", "List", "FormSummary", new {childId = Child.Id}, new {Class = "action add"})%>

1 个答案:

答案 0 :(得分:59)

这是html标题属性:

<%=Html.ActionLink("New", "List", "FormSummary", new {childId = Child.Id}, 
  new {Class = "action add", title="My Tooltip" })%>