Html
    Css
    Js

    
                        
.imgbox {
	position:relative;
	margin-left:100px;
}
.probox {
	width:300px;
	height:300px;
	border:1px solid #000;
}
.probox img {
	width:300px;
	height:300px;
	vertical-align:top;
}
.showbox {
	display:none;
	position:absolute;
	left:403px;
	top:0;
	width:400px;
	height:300px;
	overflow:hidden;
	border:1px solid #ccc;
}
.showbox img {
	position:absolute;
	height:1200px;
	width:1200px;
}
.hoverbox {
	display:none;
	position:absolute;
	top:0;
	background:#09f;
	border:1px solid #09f;
	height:75px;
	width:100px;
	cursor:move;
	z-index:10;
}

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

jQuery放大镜效果Demo

0