一个基于jquey的自动完成与分页(9)
211 };
212
213 $('#list').show();
214 P.length = Math.ceil(len / 10);
215 P.setCpi(1);
216 P.split();
217 }
218 });
219 });
220 });
CSS
* {
margin: 0;
padding: 0;
font-size: 14px;
line-height: 14px;
border: 0;
}
body {
min-width: 640px;
}
#JSearch {
width: 600px;
margin-top: 20px;
}
#keyword {
width: 480px;
height: 32px;
}
#submit {
width: 100px;
height: 32px;
}
input {
font-size: 1.5em;
line-height: 1.5em;
height: 1.5em;
border: solid #ccc 1px;
}
#submit {
cursor: pointer;
background-color: #DDDDDD;
}
#submit:hover, #submit:focus {
background-color: #666666;
color: #cccccc;
}
.center {
margin: 20px auto;
display: block;
}
.autocompletelist {
background-color: #FFFFFF;
width: 480px;
height: auto;
font-size: 1.2em;
line-height: 1.2em;
border: 1px solid #AAAAAA;
position: absolute;
display: none;
}
.autocompletelist span {
display: block;
padding: 2px 2px;
}
.autocompletelist span:hover, .dropdownlist span:focus {
background-color: #DDDDDD;
cursor: pointer;
font-weight:bold;
}
.autocompletelist .r {
float:right;
margin-right:10px;
}
#split {
margin: 10px auto;
padding: 2px 20px;
color: #3333FF;;
vertical-align:middle;
background-color: #eeeeee;
相关新闻>>
- 发表评论
-
- 最新评论 更多>>