【问题标题】:My CSS cursor does not seem to show on my page我的 CSS 光标似乎没有显示在我的页面上
【发布时间】:2021-12-30 23:51:17
【问题描述】:

我正在尝试将光标添加到我的网页。我希望它只显示在我的一张 .css 工作表上。

我一直在尝试添加这个:http://pastie.org/7471470将它粘贴到我的css页面底部,但它似乎没有效果!

    <style type="text/css">body, a, a:hover { cursor:url(http://i45.tinypic.com/zkl2l5.png), progress !important;}</style>
    <a href="http://jadore-moderncursors.tumblr.com"></a>

代码可能不适用于 css 吗?

【问题讨论】:

    标签: html css mouse-cursor


    【解决方案1】:

    a 中没有任何文本时,如何将a 元素悬停,例如:

    <a href="http://jadore-moderncursors.tumblr.com"></a>
                                                     ^//need to add something
    

    Working DEMO 在这里我添加了文本,当您将其悬停时,您可以看到自定义光标图像。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-03-05
      • 2022-11-16
      • 2012-06-07
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-04-06
      • 2014-01-20
      相关资源
      最近更新 更多