jquery拖拽 draggable插件-问答-阿里云开发者社区-阿里云

开发者社区> 问答> 正文

jquery拖拽 draggable插件

a123456678 2016-07-08 10:25:29 1292
<!DOCTYPE html>
<html>
<head>
    <title>编辑</title>
    <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
    <script type="text/javascript" src="__PUBLIC__/js/jquery.min.js"></script>
    <script type="text/javascript" src="__PUBLIC__/js/jquery-ui.js"></script>
 
</head>
<body>
<table width="310" height="248" border="1" class="tuozhuais">
  <tr >
    <td width="88">会员A</td>
    <td width="88">A</td>
    <td width="112"><table width="201" height="83" border="1">
      <tr class="tz" >
        <td   class="a">A</td>
        <td     class="b">b</td>
        <td    class="c" >c</td>
        <td     class="d">d</td>
      </tr>
 
    </table></td>
  </tr>
 
</table>
 
<div class="tuozhuaiyuan" >
<table width="197" height="71" border="0">
  <tr>
    <td width="59"><img src="__PUBLIC__/img/ed_05.png" width="15" height="15" alt="X">A</td>
    <td width="64"><img src="__PUBLIC__/img/clock.png" width="17" height="18" alt="X">B</td>
    <td width="52"><img src="__PUBLIC__/img/close.gif" width="12" height="12">C</td>
    <td><img src="__PUBLIC__/img/data_icon.png" width="17" height="21">D</td>
  </tr>
</table>
</div>
 
</body>
</html> 
JavaScript
分享到
取消 提交回答
全部回答(1)
  • a123456678
    2019-07-17 19:53:09
    <script>
          $(function(){
              $(".tuozhuaiyuan table tr td").draggable({ helper:"clone"  });
          })
    </script>
    0 0
开发与运维
使用钉钉扫一扫加入圈子
+ 订阅

集结各类场景实战经验,助你开发运维畅行无忧

推荐文章
相似问题
推荐课程