Html
    Css
    Js

    
                        
body {
	cursor:url("js/auto.cur"),auto;
}
#canvas {
	background:white;
	position:absolute;
	border:blue 1px solid;
	cursor:pointer;
}

                        
↑上面代码改变,会自动显示代码结果 jQuery调用版本:2.1.4
 立即下载

canvas简单的鼠标跟随

canvas实现简单的鼠标跟随,按住鼠标左键移动绘画轨迹,2秒后轨迹消失

0