I've built a simple panorama photo viewer in jquery, see live example here: http://alafiariver.org/alafia/vi开发者_如何学Pythonew/aldermans-ford
How can I prevent this from being dragged too far? These photos vary in width, so the solution needs to be dynamic.
You can use containment property to restrict movement of image. See live example here.
精彩评论