<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题页</title>
<script src="jquery-1.10.2.js" type="text/javascript"></script>
<style type="text/css">
.waiting{color:gray};
</style>
<!--事件-->
<script type="text/javascript">
$(function(){
$(document).mousemove(function(e){
$('#fly').css("left",e.pageX).css("top",e.pageY);
});
});
</script>
</head>
<body>
<div id="fly" style="position:absolute">123</div>
</body>
</html>
Jquery系列-Jquery坐标的使用
最新推荐文章于 2020-07-30 20:23:36 发布