本文实例讲述了JavaScript+HTML5 canvas实现放大镜效果。分享给大家供大家参考,具体如下:
效果:
<!DOCTYPE html>
<html>
<head lang=en>
<meta charset=UTF-8>
<title>www.jb51.net canvas放大镜</title>
<style>
#copycanvas {
border: 1px solid #000;
display: none;
}
#square {
width: 90px;
height: 90
1