Change cursor over HTML5 Canvas when dragging - HTML CSS CSS Property

HTML CSS examples for CSS Property:cursor

Description

Change cursor over HTML5 Canvas when dragging

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <style id="compiled-css" type="text/css">
#draw {<!--from  w w w.  ja v a  2 s. com-->
   cursor:pointer;
   border:2px solid Chartreuse;
   width:201px;
   height:201px;
}

#draw:active {
   cursor:crosshair;
}
</style> 
 </head> 
 <body>
   Lorem 
  <br> 
  <canvas id="draw"></canvas>  
 </body>
</html>

Related Tutorials