Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Based on jQuery imitating Taobao product picture magnifying glass code how to write

2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article is about how to write a magnifying glass code for imitating Taobao products based on jQuery. The editor thinks it is very practical, so I share it with you. I hope you can get something after reading this article. Let's take a look at it.

Today, I would like to share with you a code of picture magnifying glass based on jQuery Taobao products. This is a jQuery magnifying glass based on the jquery.imagezoom plug-in. Applicable browsers: IE8, 360,360, FireFox, Chrome, Safari, Opera, Aoyou, Sogou, window of the World, online preview please click. The effect picture is as follows:

The code for the implementation.

Html Code:

美女

Css Code:

Html {overflow-y:scroll;} body {margin:0; font:12px "\ 5B8B\ 4F53", san-serif;background:#ffffff;} div,ul,li {padding:0; margin:0;} li {list-style-type:none;} img {vertical-align:top;border:0;} / * box * / .box {width:310px;margin:100px auto;} .tb-pic a {display:table-cell;text-align:center;vertical-align:middle }. Tb-pic an img {vertical-align:middle;}. Tb-pic a {* display:block;*font-family:Arial;*line-height:1;}. Tb-thumb {margin:10px 00 transparent;float:left;height:42px;margin:0 6px overflowed hidden;}. Tb-thumb li {overflowed 00 transparent;float:left;height:42px;margin:0 6px 00 overflowed hiddenten paddinglpx;} .tb-s310, .overflowed a {height:310px;width:310px } .tb-s310, .tb-s310 img {max-height:310px;max-width:310px;}. Tb-s310 a {* font-size:271px;}. Tb-s40 a {* font-size:35px;} .tb-S40, .tb-s40 a {height:40px;width:40px;}. Tb-booth {border:1px solid # CDCDCD;position:relative;z-index:1;}. Tb-thumb. Tb-selected {background:none repeat scroll 00 # C30008ash }. Tb-thumb. Tb-selected div {background-color:#FFFFFF;border:medium none;}. Tb-thumb li div {border:1px solid # CDCDCD;} div.zoomDiv {border:1px solid # CDCDCD;} div.zoomMask {position:absolute;background:url ("images/mask.png") repeat scroll 00 transparent;cursor:move The above is based on jQuery imitating Taobao product picture magnifying glass code. The editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report