开发者

How to clip an image with jQuery without a plugin

开发者 https://www.devze.com 2023-01-11 06:08 出处:网络
How do I cl开发者_如何学Goip an image in jQuery without a plugin?I want to create a 360 image rotator by placing all of the images in a single image and then have jQuery navigate to the correct X,Y co

How do I cl开发者_如何学Goip an image in jQuery without a plugin? I want to create a 360 image rotator by placing all of the images in a single image and then have jQuery navigate to the correct X,Y coordinates in that master image and display the correct clip of the image in a div.


Set the large image as the background of your fixed-size div through CSS and then use jQuery to manipulate the background-position values.

0

精彩评论

暂无评论...
验证码 换一张
取 消