jquery dragMenu实现图片拖拽位移排序效果代码
代码语言:html
所属分类:拖放
代码描述:jquery dragMenu实现图片拖拽位移排序效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>拖拽插件</title> <style> body{ padding: 200px; } * { list-style: none; padding: 0; margin: 0; } #dragMenu { position: relative; width: 1400px; margin: 0 auto; } #dragMenu::after { content: ''; display: block; clear: both; } li { width: 30%; height: 250px; float: left; cursor: move; margin: 10px 5px; } li.active { border: 1px solid red; } img { width: 100%; height: 100%; display: block; } </style> <script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/jquery-3.2.1.min.js"></script> <script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/jquery.dragMenu.js"></script> </head> .........完整代码请登录后点击上方下载按钮下载查看
网友评论0