Questions tagged «dynamic-css»

14
在整个HTML页面上等待光标
是否可以通过简单的方式将光标设置为在整个html页面上“等待”?这个想法是向用户显示ajax调用完成时发生了什么事情。下面的代码显示了我尝试过的简化版本,还演示了遇到的问题: 如果元素(#id1)设置了一个游标样式,则它将忽略主体上的一个(显然) 一些元素具有默认的光标样式(a),并且不会在悬停时显示等待光标 根据内容的不同,body元素具有一定的高度,如果页面较短,则光标将不会显示在页脚下方 考试: <html> <head> <style type="text/css"> #id1 { background-color: #06f; cursor: pointer; } #id2 { background-color: #f60; } </style> </head> <body> <div id="id1">cursor: pointer</div> <div id="id2">no cursor</div> <a href="#" onclick="document.body.style.cursor = 'wait'; return false">Do something</a> </body> </html> 后来编辑... 它在firefox和IE中与: div#mask { display: none; cursor: wait; z-index: 9999; …
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.