HTML
HTML5 Canvas
drawImage(image,x,y)
源代码:
点击运行 »
var c = document.getElementById("myCanvas"); var ctx = c.getContext("2d"); var img = document.getElementById("scream"); ctx.drawImage(img, 10, 10);
运行结果:
点击运行 »