CloudZoom

参考

1.1、CloudZoom简介

CloudZoom是一个类似于电商平台上的商品图片放大镜效果。

CloudZoom官网:http://www.starplugins.com/cloudzoom

1.3、使用CloudZoom
<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>

    <link rel="stylesheet" type="text/css" href="http://www.starplugins.com/sites/starplugins/js/cloudzoom/cloudzoom.css?v=4"/>
</head>
<body>
    <img class="cloudzoom" src="images/small/image1.jpg"
         data-cloudzoom="zoomImage: 'images/large/image1.jpg'"/>

    <script type="text/javascript" src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
    <script type="text/javascript" src="http://www.starplugins.com/sites/starplugins/js/cloudzoom/cloudzoom.js?v=20"></script>

    <script type="text/javascript">
        CloudZoom.quickStart();
    </script>
</body>
</html>