代码拉取完成,页面将自动刷新
<h2 class="contentTitle">面板</h2>
<div class="pageContent sortDrag" selector="h1" layoutH="42">
<div class="panel" defH="150">
<h1>不可折叠面板1</h1>
<div>
<table class="list" width="98%">
<thead>
<tr>
<th width="80">序号</th>
<th>姓名</th>
<th>性别</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>张三</td>
<td>男</td>
</tr>
<tr>
<td>2</td>
<td>李四</td>
<td>女</td>
</tr>
<tr>
<td>1</td>
<td>张三</td>
<td>男</td>
</tr>
<tr>
<td>2</td>
<td>李四</td>
<td>女</td>
</tr>
<tr>
<td>1</td>
<td>张三</td>
<td>男</td>
</tr>
<tr>
<td>2</td>
<td>李四</td>
<td>女</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="panel close collapse" defH="150">
<h1>可折叠默认关闭面板</h1>
<div>
<table class="table" width="98%">
<thead>
<tr>
<th width="80">序号</th>
<th>姓名</th>
<th>性别</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>张三</td>
<td>男</td>
</tr>
<tr>
<td>2</td>
<td>李四</td>
<td>女</td>
</tr>
<tr>
<td>1</td>
<td>张三</td>
<td>男</td>
</tr>
<tr>
<td>2</td>
<td>李四</td>
<td>女</td>
</tr>
<tr>
<td>1</td>
<td>张三</td>
<td>男</td>
</tr>
<tr>
<td>2</td>
<td>李四</td>
<td>女</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="panel collapse" minH="100" defH="150">
<h1>可折叠默认打开面板</h1>
<div>
<p>内容</p>
<p>内容</p>
<p>内容</p>
</div>
</div>
<div id="testDrag" style="border:1px solid red;">test</div>
</div>
<script>
$.fn.extend({
divDrag: function (options) {
return this.each(function () {
var $box = $(this);
$box.mousedown(function(event){
var position = $box.position();
$box.css({
position:'absolute',
top:position.top,
left:position.left,
width:$box.width()+'px',
height:$box.height()+'px'
}).jDrag({
event:event
});
});
});
}
});
$('#testDrag').divDrag();
</script>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。