【问题标题】:How to add a custom cursor for a ASP.NET control?如何为 ASP.NET 控件添加自定义光标?
【发布时间】:2009-08-05 07:02:16
【问题描述】:

如何将自定义鼠标光标(例如来自 C:\Windows\Cursors 目录的光标)添加到 ASP.NET 用户控件上?

非常感谢,

dattebayo...

【问题讨论】:

    标签: asp.net cursors


    【解决方案1】:

    您可以使用 CSS cursor 属性(请参阅this page 了解可用的光标)。

    <asp:Button ID="Button1" runat="server" Text="Button" style="cursor: pointer" />
    

    <style type="text/css">
      .PointerCursor
      {
        cursor: pointer;
      }
    </style>
    
    <asp:Button ID="Button1" runat="server" Text="Button" CssClass="PointerCursor" />
    

    【讨论】:

    猜你喜欢
    • 2011-03-23
    • 2013-07-25
    • 1970-01-01
    • 1970-01-01
    • 2011-11-10
    • 1970-01-01
    • 2019-05-22
    • 2011-01-17
    • 2011-04-16
    相关资源
    最近更新 更多