在Xul的透明窗口中,如何隐藏鼠标光标? [英] In Xul, within a transparent window, how do I hide the mouse cursor?

查看:93
本文介绍了在Xul的透明窗口中,如何隐藏鼠标光标?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个透明的Xul窗口,我需要在1秒钟后隐藏鼠标光标.应用cursor: none无效,鼠标光标仍显示在窗口的透明部分.

I have a Xul window that is transparent, and I need to hide the mouse cursor after 1 second. Applying cursor: none will not work, the mouse cursor still shows up in the transparent part of the window.

有什么想法摆脱鼠标光标吗?

Any idea how to get rid of the mouse cursor?

推荐答案

您的操作系统通常甚至不会费心将鼠标事件发送到完全透明的(您所在的区域)窗口;就其而言,您的窗口不存在.但是,如果您的操作系统允许,则可以使用几乎透明的窗口.

Your OS generally won't even bother to send mouse events to a completely transparent (area of your) window; as far as it's concerned, your window isn't there. However if your OS allows it, a nearly transparent window might work.

这篇关于在Xul的透明窗口中,如何隐藏鼠标光标?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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