I want to make some interactions with some images on my site. I want to let the possibility to user of clicking on a 开发者_运维问答image, holding it and then drag it everywhere he wants it on the page. Is this possible using only Javascript, HTML5 and CSS3?
PS: I need it to run on iPhone Mobile Safari
Should be possible. This jQuery Mobile plugin seems to support what you need:
http://plugins.jquery.com/project/mobiledraganddrop
It is possible to implement drag and drop using only Javascript, see here.
However, it is not possible to implement this on mobile safari because it will interpret the drag operation as a scroll.
精彩评论