根据放大镜的原理,通过jQuery中鼠标的3种事件(.mouseover/.mousemove/.mouseout)实现了电商网站的商品图片自动放大效果的设计.当用户把鼠标移动到商品图片上时,会在旁边出现一张局部放大的图片,顾客更好地看清楚商品的局部细节.
According to the principle of a magnifying glass,the mouse three events of jQuery(.mouseover/.mousemove/.mouseout)are used to realize the design of amplification effects of e-commerce sitess' commodity pictures.When users move the mouse to goods in the picture,the picture will appear alongside a picture of a local amplification to make sure that the customers have a better look at local details of the goods.