在Chrome(和IE)中隐藏光标 [英] Hide cursor in Chrome (and IE)

查看:414
本文介绍了在Chrome(和IE)中隐藏光标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有以下CSS隐藏鼠标光标的网页上的任何东西。它在FireFox完美的工作,但在IE和Chrome它不工作。

I have the following CSS that hides the mouse cursor for anything on the web page. It works perfectly in FireFox but in IE and and Chrome it doesn't work.

    html {
        cursor: none;
    }



在Chrome中我总是看到鼠标指针。在IE,但我看到任何光标是最后一次活动,当它进入屏幕。

In Chrome I always see the mouse pointer. In IE however I see whatever cursor was last 'active' when it entered the screen. Presumably it's keeping the last selection instead of removing it.

推荐答案

此属性 cursor:none; 不是标准的一部分

This property cursor:none; isn't part of the standard

请参阅 w3c cursor CSS properties

您可能希望使用Javascript或JQuery隐藏它。

You might want to look into hiding it with Javascript or JQuery.

此外,请查看此处的空白光标文件。

Also, look at blank cursor files here.

最后一个链接指向 ajax解决方案

Chrome自建立以来就遇到了这个问题,有一些报告发送给人们 Chromium ,并假设他们正在处理。

Chrome has had this issue since it was built, there have been reports sent to the people at Chromium, and I assume they are working on it.

此外,相信任何东西都会在IE中工作。永远。 :P

Also, don't trust that anything would work in IE. Ever. :P

这篇关于在Chrome(和IE)中隐藏光标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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