jquery div拖动效果示例代码
发布时间:2016-12-30 来源:查字典编辑
摘要:复制代码代码如下:拖动DIV.show{background:#7cd2f8;width:100px;height:100px;text-a...
复制代码 代码如下:
<%@ page language="java" contentType="text/html; charset=utf-8"
pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>拖动DIV</title>
<style type="text/css">
.show{
background:#7cd2f8;
width:100px;
height:100px;
text-align:center;
position:absolute;
z-index:1;
left:100px;
top:100px;
}
</style>
<script type="text/javascript" src="../Script/jquery-1.7.2.js"></script>
<script type="text/javascript"><></script>
</head>
<body>
<div>
jquery实现DIV层拖动
</div>
</body>
</html>