模拟实现可以输入的 select 下拉框

怎样实现选择框可以输入?
http://www.blueidea.com/user/qswh/GB2312.html
为什么在我这选择框不可以输入,我用的是IE浏览器,能否实现这样的功能:输入后的模糊查询?只需在你的功能上加一个select的输入实现,谢谢
---------------------------------------------------------------

可选择也可自填内容的下拉菜单
要完成此效果需要两个步骤

第一步:把如下代码加入到

 1<head>区域中   
 2  
 3<style>   
 4button {cursor:hand;border:1px solid black;font-family:arial;font-size:9pt;}   
 5.combo-button {   
 6cursor: pointer;   
 7cursor: expression("hand");   
 8height: 20px;   
 9border: 1px solid rgb(0,0,0);   
10background: rgb(234,242,255);   
11width: 14px;   
12}   
13.combo-hilite {   
14cursor: pointer;   
15cursor: expression("hand");   
16background: rgb(234,242,255);   
17border: 1px solid rgb(0,0,0);   
18color: black;   
19font-family: verdana;   
20font-size: 9pt;   
21}   
22.combo-item {   
23cursor: pointer;   
24cursor: expression("hand");   
25background: white;   
26border: 1px solid white;   
27color: black;   
28font-family: verdana;   
29font-size: 9pt;   
30}   
31  
32.combo-input {   
33border: 1px solid rgb(0,0,0) !important;   
34width: 138px !important;   
35}   
36  
37.combo-list-width {   
38width:153px   
39}   
40  
41.combo-list {   
42border: 1px solid black;   
43width: 153px;   
44/*height: 50px;   
45overflow-y: auto;   
46scrollbar-base-color: rgb(234,242,255);   
47scrollbar-highlight-color: rgb(234,242,255);   
48scrollbar-3dlight-color: rgb(0,0,0);   
49scrollbar-darkshadow-color: rgb(255,255,255);   
50scrollbar-shadow-color: rgb(234,242,255);   
51scrollbar-face-color: rgb(234,242,255);   
52scrollbar-track-color: white;   
53scrollbar-arrow-color: black;*/   
54}   
55</style>   
56\---------------------------------------------------------------   
57  
58第二步:把如下代码加入到<body>区域中   
59  
60<script></script></body></head>
Published At
Categories with Web编程
Tagged with
comments powered by Disqus