http://community.csdn.net/Expert/TopicView.asp?id=3879987

解决方案 »

  1.   

    谢谢梅花雪,
    可是你的那个有点不能达到我的其它的一些要求
    现在我自己写了一个用div层来显示的,鼠标、光标操作都没什么问题,最主要的是想怎么控制就可以怎么控制,但是现在遇到了一个问题:
    如果层显示的地方有下拉列表框的话,下拉列表框会把层中的内容挡住
      

  2.   

    以下代码,
    仅作div盖select的示例
    <html><head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <title>JK:支持民族工业,尽量少买X货</title></head><body>
    <iframe  style="position:absolute;z-index:9;width:expression(this.nextSibling.offsetWidth);height:expression(this.nextSibling.offsetHeight);top:expression(this.nextSibling.offsetTop);left:expression(this.nextSibling.offsetLeft);" frameborder="0" ></iframe>
    <div style="z-index:10;position:absolute;background-color:blue;width:100;height:18;overflow:hidden;" onmouseover="this.style.height=54;" onmouseout="this.style.height=18;">aaaaaaa<br>bbbbbbb<br>ccccccc</div><select style="width:200" ><option>test0<option>test1<option>test2<option>test3</select>
    <br>
    <pre>
    Div被Select挡住,是一个比较常见的问题。
    有的朋友通过把div的内容放入iframe或object里来解决。
    可惜这样会破坏页面的结构,互动性不大好。这里采用的方法是:虽说div直接盖不住select
    但是div可以盖iframe,而iframe可以盖select,
    所以,把一个iframe来当作div的底,
    这个div就可以盖住select了.</pre></body></html>
      

  3.   

    那是用AJAX根据你输入的内容动态读取的信息,然后返回前台你所看到的,原理做一个层,层里面是读取的SELECT内容