阅读背景:

我想根据鼠标的位置改变背景的颜色

来源:互联网 

Here is my code:

这是我的代码:

$(document).mousemove(function(e){
    var $width = ($(document).width())/255;
    var $height = ($(document).height())/255;
    var $pageX = e.pageX / $width;
    var $pageY = e.pageY / $height;
    $("body").css("background-color", "rgb("+$pageX+","+$pageY+","+$pageX+")");
}); 
$(document).mousem



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: