I want to change the style of the cursor as if it were going over a link. How do I do this?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
Modify the CSS cursor
value by using the css()
method
$('#selector').css('cursor', 'pointer');
Demo : http://jsfiddle.net/jomanlk/H6Nta/
回答2:
you can play around with this
$('#divid').css('cursor','default');
for pointer
$('#divid').css('cursor','pointer');
api
http://api.jquery.com/css/
回答3:
using css
http://www.echoecho.com/csscursors.htm
read here for different cursor styles
and apply it
$('#selector').css('cursor', 'value');
回答4:
Cursors are handled by CSS. You need something like
$('#elementid').css('cursor', 'pointer');
or for old IE browsers
$('#elementid').css('cursor', 'hand');