jquery - 如何在没有插件的情况下使用 jQuery 剪辑图像

标签 jquery image-clipping

如何在没有插件的情况下在 jQuery 中剪辑图像?我想通过将所有图像放置在单个图像中来创建 360 度图像旋转器,然后让 jQuery 导航到该主图像中正确的 X,Y 坐标,并在 div 中显示图像的正确剪辑。 .

最佳答案

通过 CSS 将大图像设置为固定大小 div 的背景,然后使用 jQuery 操作背景位置值。

关于jquery - 如何在没有插件的情况下使用 jQuery 剪辑图像,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3479366/

相关文章:

javascript - 仅使用一个按钮的 AJAX 脚本

javascript - 在 Javascript 中搜索关联数组/哈希

php - 我如何使用 php 生成 fancytree json 格式

html - 是否可以将方形图像放在椭圆形图像上?

JQuery Draggable - 约束到父级,但允许在父级下滑动?

html - 是否可以使用 html + css3 实现图像剪辑/ mask 效果?

android - 剪切路径问题

jquery 删除选定的元素并附加到另一个元素

jquerycurvycorners : -moz-border-radius replace to border-radius

html - 剪辑路径占用整个图像的空间?