首页
极刻
圈子
教程
开源
登录 / 注册
返回教程:Javascript 参考手册
TRY RUN / 在线示例
Javascript 参考手册 更多光标
Javascript 参考手册 更多光标
源代码
运行
<!DOCTYPE html> <html> <head> <script> function displayResult(x) { var whichSelected=x.selectedIndex; document.body.style.cursor=x.options[whichSelected].text; } </script> </head> <body> <p>Select a cursor in the list below and move the cursor over the body.</p> <select onchange="displayResult(this);" size="17"> <option>auto <option>crosshair <option>default <option>crosshair <option>e-resize <option>help <option>move <option>n-resize <option>ne-resize <option>nw-resize <option>pointer <option>s-resize <option>se-resize <option>sw-resize <option>text <option>w-resize <option>wait </select> </body> </html>
运行结果