- 理论基础:
- 涉及同时
注册多个事件
- 对
类名
进行操作- 操作元素
过滤的方法
- 详细可以参考?原出处
<!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>星级评分系统</title>
<style>
body, div, ul, li, p {
margin: 0;
padding: 0;
}
body {
color: #666;
font: 12px/1.5 Arial;
}
ul {
list-style-type: none;
}
#star {
position: relative;
width: 600px;
margin: 10px auto;