请教,当我鼠标点着container的滚动条上移动时,用什么事件可以监听呢
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<style type="text/css">
#container {
width: 200px;
height: 400px;
border: 1px dotted black;
margin: 50px auto;
overflow-y: auto;
}
#container ul {
padding: 0;
margin: 0;
}
#container li {
width: 400px;
list-style: none;
height: 400px;
line-height: 400px;
text-align: center;
margin-bottom: 5px;
background: khaki;
}
#container li:last-child {
margin: 0;
}
#pagi li {
float: left;
list-style: none;
}
</style>
<script type="text/javascript" src="jquery-1.11.0.min.js"></script>
</head>
<body style="height: 1000px; width: 2000px;">
<div id="container">
<ul>
<li>1</li>
<li>2</li>
<li>3</li>
<li>4</li>
</ul>
</div>
<ul id="pagi">
<li><button>首页</button></li>
<li><button>上一页</button></li>
<li><button>下一页</button></li>
<li><button>尾页</button></li>
</ul>
</body>
</html>
素胚勾勒不出你
相关分类