问题
I'm developing my web app with nodewebkit in fullscreen mode.
It has to be used with touchscreen monitor.
I've used CSS proprerty:
html * {
cursor: none;
}
In nodewebkit's manifest seems that nothing usefull is provided to remove cursor..
Problem is that cursor disappears only when it is moved the first time.
How can I improve this behavior?
回答1:
I've fixed the problem calling from script:
document.body.style.cursor = 'none';
But I can't understand why doesn't work from css.
回答2:
I think maybe you need to focus window at first to make the css hiding cursor work?!
I meet the same issue and then have gone with the following code.
var gui = require("nw.gui");
var win = gui.Window.get();
win.focus();
来源:https://stackoverflow.com/questions/23936567/nodewebkit-app-hide-cursor