32
我認爲這應該很簡單,但我找不到選項!如何獲得我的ActionLink的工具提示?
如何爲我的ActionLink獲取tool-tip/alt
?
<%=Html.ActionLink("New", "List", "FormSummary", new {childId = Child.Id}, new {Class = "action add"})%>
我認爲這應該很簡單,但我找不到選項!如何獲得我的ActionLink的工具提示?
如何爲我的ActionLink獲取tool-tip/alt
?
<%=Html.ActionLink("New", "List", "FormSummary", new {childId = Child.Id}, new {Class = "action add"})%>
它的HTML title屬性:
<%=Html.ActionLink("New", "List", "FormSummary", new {childId = Child.Id},
new {Class = "action add", title="My Tooltip" })%>
尼斯一個,謝謝。不需要孩子和作爲一個VB.NET用戶我以這種方式使用它:@ Html.ActionLink(「新建」,「列表」,「FormSummary」,新與{.Class =「動作添加」,.title =「我的Tooltip「}) –
上面的代碼必須更正爲:@ Html.ActionLink(」New「,」List「,」FormSummary「,Nothing,New With {.Class =」action add「,.title =」My Tooltip 「})否則你會得到一個404錯誤 –