日期:2014-05-16 浏览次数:20385 次
<html>
<head>
<meta charset="UTF-8">
<title>easyui drag-and-drop</title>
<link rel="stylesheet" type="text/css" href="Content/themes/easyui/default/easyui.css">
<link rel="stylesheet" type="text/css" href="Content/themes/easyui/icon.css">
<script type="text/javascript" src="Scripts/jquery-1.6.2.min.js"></script>
<script type="text/javascript" src="Scripts/jquery.easyui.min.js"></script>
</head>
<body>
<h2>Accept a Drop</h2>
<div class="demo-info">
<div class="demo-tip icon-tip"></div>
<div>Some draggable object can not be accepted.</div>
</div>
<div style="margin:10px 0;"></div>
<div id="source" style="border:1px solid #ccc;width:500px;height:800px;float:left;margin:5px;">
drag me!
<div id="d1" class="drag">
Drag 1<br/>
<table>
<tr>
<td>a</td><td><input type="text" value="test" /></td>
<td>b</td><td><input type="text" value="test"/></td>
</tr>
<tr>
<td>c</td><td><input type="text" value="test"/></td>
<td><select>
<option value="1">hehe</option>
<option value="2">haha</option>
</select></td>
</tr>
<tr>
&n