如何跟踪Windows用户的一个光标和MacOSX用户的另一个光标?
发布于 2020-04-23 01:40:44
这很简单。检查navigator中的用户平台。然后做一些类似的事情:
if ( navigator.platform == "Win32" ) {
// apply css-styling of cursor.
document.getElementById("body").style.cursor = "progress";
}可能的值包括:
支持的浏览器:
谷歌Chrome
的
https://stackoverflow.com/questions/61371523
复制相似问题