【问题标题】:How to change cursor on the NextGen Gallery Slideshow in Wordpress如何在 Wordpress 中更改 NextGen Gallery 幻灯片上的光标
【发布时间】:2016-05-06 21:09:59
【问题描述】:

我整个上午都在努力解决这个问题。我知道如何改变它 -

$('selector').css( 'cursor', 'pointer' );

我的问题是在 NextGen 插件的所有 js / css 文件中应用它的位置。有人可以帮忙吗?

【问题讨论】:

    标签: jquery css wordpress cursor nextgen-gallery


    【解决方案1】:

    尝试在您的 css 文件上使用 !important 而不是使用 jQuery 来更改它。

    .selector {cursor:pointer !important;}
    

    使用 !important 意味着它将忽略已声明的任何其他专有游标。我不知道 nextgen 插件,但您可以在 Google Chrome、Mozilla Firefox 甚至 IE 上查看该元素的类。

    https://developers.google.com/chrome-developer-tools/docs/elements

    http://css-tricks.com/when-using-important-is-the-right-choice/

    【讨论】:

    • 不起作用。因为它是幻灯片,所以页面上实际上没有图像——它都是内置的,所以光标保持默认。不过谢谢!
    • 即使是通过javascript构建的html也要遵循css文件的规则,看看如何在浏览器的元素查看器上查看元素的类
    • 只需要通过插件搜索获得的 css。谢谢!
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-08-21
    • 1970-01-01
    • 1970-01-01
    • 2019-10-09
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多