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

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

问题描述

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

  html {
cursor:none ;
}



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

解决方案

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



请参阅此处 w3c cursor CSS属性



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



此外,请查看空白光标文件此处。 / p>

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



Chrome自建立以来就遇到了这个问题,有人向 Chromium ,我假设他们正在处理。



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


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;
    }

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.

解决方案

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

See here w3c cursor CSS properties.

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

Also, look at blank cursor files here.

And one last link to an ajax solution.

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.

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

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

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