I have a drawing pad, and want to overlay an image that is just an outline (so the image is transparent except for some black lines).
问题 I have it so that you can draw under the image, but you must start drawing outside of the image border and move under the image. So you can't start right on the image. How do I fix this? My html is just: <canvas id="canvas"></canvas> <img id="html5" src="http://i.imgur.com/Wpx3Vum.png" style="position:absolute;left:100px;top:15px;" /> 回答1: You can use two canvas elements instead: Put two canvas elements on top of each other Draw the image you want to superimpose on the top canvas Add mouse