Home >Web Front-end >JS Tutorial >jquery simple drag effect implementation principle and example_jquery

jquery simple drag effect implementation principle and example_jquery

WBOY
WBOYOriginal
2016-05-16 17:27:581057browse
Copy code The code is as follows:




Example of simple dragging principle
< ;style type="text/css">
#drag{width:400px;height:300px;background:url(http://upload.yxgz.cn/uploadfile/2009/0513/20090513052611873.jpg); cursor:move;position:absolute;top:100px;left:100px;border:solid 1px #ccc;}
h2{color:#fff;background: none repeat scroll 0 0 rgba(16, 90, 31, 0.7 );color:#FFFFFF;height:40px;line-height:40px;margin:0;}











Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn