【问题标题】:display a comment on action links在操作链接上显示评论
【发布时间】:2012-09-03 23:37:34
【问题描述】:

当用户鼠标悬停在操作链接上时如何显示评论?我正在使用 gridview,这是我的专栏之一,其中包含一个操作链接:

grid.Column(header: "", format:  (item) => Html.ActionLink("Détails", "Details",
 new { id = item.id_projet}, new { @class = "details" }), style: "actions")

【问题讨论】:

  • 你能给链接加个标题吗?如果是这样,浏览器会将评论显示为工具提示。

标签: asp.net css asp.net-mvc


【解决方案1】:

你的意思是标题吗?

grid.Column(header: "", format:  (item) => Html.ActionLink("Détails", "Details",
 new { id = item.id_projet}, new { @class = "details", @title = "text here" }),
 style: "actions")  

如果您将链接悬停,这将显示文本 text here

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2019-01-31
    • 2023-03-13
    • 1970-01-01
    • 2015-07-06
    • 2012-02-07
    • 1970-01-01
    • 2022-01-10
    • 2011-04-09
    相关资源
    最近更新 更多