我想在鼠标悬停在页面正文背景上时改变光标(背景是广告)
我试过这个:
<script>
var $bodyb = $('body');
$($bodyb).hover(function() {
$(this).css('cursor','pointer');
}, function() {
$(this).css('cursor','auto');
});
</script>
但它不起作用。有什么解决办法吗?
最佳答案
试试这个:
body {
cursor: pointer;
}
关于jquery - 鼠标悬停页面背景时更改光标,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24656221/