自定义光标CSS工作很奇怪,单击时它会在自定义光标和默认光标之间交换 [英] Custom Cursor CSS works weird, it keeps swapping between custom cursor and default cursor when you click

查看:90
本文介绍了自定义光标CSS工作很奇怪,单击时它会在自定义光标和默认光标之间交换的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

自定义光标CSS工作很奇怪,当你点击它时,它会在自定义光标和默认光标之间交换。

Custom Cursor CSS works weird, it keeps swapping between custom cursor and default cursor when you click.

有人可以说我该怎么做才能修复它?

Can someone tells me what to do to fix it ?

我的css是:

* {

cursor:url(/images/cursor/pointer.cur),默认值;

cursor: url(/images/cursor/pointer.cur), default ;

}

它可以工作,但是当我点击或更改页面时,它会不断切换到默认光标然后立即再次更改为自定义光标,这很奇怪。

It works but when I click or change pages, it keeps swapping into default cursor then immediately change into custom cursor again, it is very weird.

推荐答案

您的其他页面是否包含JavaScript库引用? 这可能是问题所在。 只有在混合工作时才需要它们,所以请尝试从除第一页之外的所有页面中删除它们。 

Do your other pages include the JavaScript library references?  That may be what the issue is.  They are only needed while you are working in blend, so try removing them from all but your first page. 

-Jeff


这篇关于自定义光标CSS工作很奇怪,单击时它会在自定义光标和默认光标之间交换的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆