jquery实现鼠标拖动摇杆操作效果代码
代码语言:html
所属分类:拖放
代码描述:jquery实现鼠标拖动摇杆操作效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <style> html, body, .circle { margin: 0; padding: 0; } html, body { width: 100%; height: 100%; } .circle { border-radius: 50%; border: 1px solid; } .parent { width: 140px; height: 140px; } .child { width: 100px; height: 100px; } .parent { position: absolute; left: 0; top: 0; bottom: 0; right: 0; margin: auto; } .child { position: relative; width: 50px; height: 50px; left: 45px; top: 45px; } </style> </head> <body> <div class="circle parent"> <div class="circle child"> </div> </div> <script type="text/javascript" src="//rep.........完整代码请登录后点击上方下载按钮下载查看
网友评论0