最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

jquery圖片放大功能簡(jiǎn)單實(shí)現(xiàn)

 更新時(shí)間:2013年08月01日 15:07:13   作者:  
圖片放大在某些例如商品細(xì)節(jié)放大圖比較常見(jiàn),本文寫(xiě)了一個(gè)圖片放大的示例適合日常應(yīng)付,有需求的朋友可以參考下
復(fù)制代碼 代碼如下:

<div class="jqzoom">
<img src="http://bfbnews.tw/images/test.jpg" id="bigImg" style="width:500px;height:300px;" jqimg="http://bfbnews.tw/images/test.jpg">
</div>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script>
<style type="text/css">
body{margin:0px;}
div.zoomdiv {
z-index: 999;
position : absolute;
top:0px;
left:0px;
width : 200px;
height : 200px;
background: #ffffff;
border:1px solid #CCCCCC;
display:none;
text-align: center;
overflow: hidden;
}
div.jqZoomPup {
z-index : 999;
visibility : hidden;
position : absolute;
top:0px;
left:0px;
width : 50px;
height : 50px;
border: 1px solid #aaa;
background: #ffffff;
opacity: 0.5;
-moz-opacity: 0.5;
-khtml-opacity: 0.5;
filter: alpha(Opacity=50);
}
</style>
<script type="text/javascript">
$(document).ready(function(){
$(".jqzoom").jqueryzoom({
xzoom: 400, //設(shè)置放大 DIV 長(zhǎng)度(默認(rèn)為 200)
yzoom: 400, //設(shè)置放大 DIV 高度(默認(rèn)為 200)
offset: 10, //設(shè)置放大 DIV 偏移(默認(rèn)為 10)
position: "right", //設(shè)置放大 DIV 的位置(默認(rèn)為右邊)
preload:1,
lens:true
});
});
</script>
<!--{include file="jqzoom_js.html"}-->

相關(guān)文章

最新評(píng)論

盐池县| 松原市| 南漳县| 类乌齐县| 万年县| 洛南县| 阿巴嘎旗| 吉林市| 绥棱县| 上栗县| 阿克陶县| 许昌县| 施秉县| 芦山县| 南城县| 巢湖市| 开鲁县| 乳源| 峨眉山市| 石渠县| 永福县| 河北省| 连州市| 大连市| 渭源县| 临漳县| 济阳县| 香格里拉县| 五峰| 仪陇县| 兴隆县| 泸州市| 武宁县| 布拖县| 江城| 阳信县| 子长县| 绥化市| 泽州县| 正宁县| 乐陵市|