显示可以设置:
document.getElementById("DIVID").style.zIndex=999999
也就是动态设置z-index属性来进行调整顺序。
把不显示的zIndex设置的小些

解决方案 »

  1.   

    css参考http://msdn.microsoft.com/workshop/author/css/css_node_entry.asp
      

  2.   

    <script>
    function a(o)
    {
    x=document.getElementsByTagName("DIV")
    for(i=0;i<x.length;i++)
    x[i].style.zIndex=1
    o.style.zIndex=9999
    }
    </script>
    <div id=a1 onclick="a(this)" style="position:absolute;left:10;top:10;background-color:red;z-index:1">层层层层层层层11111<p>层层层层层层层11111<p>层层层层层层层11111<p></div>
    <div id=a1 onclick="a(this)" style="position:absolute;left:30;top:30;background-color:blue;z-index:2">层层层层层层层22222<p>层层层层层层层22222<p>层层层层层层层22222<p></div>
    <div id=a1 onclick="a(this)" style="position:absolute;left:50;top:50;background-color:#00FF00;z-index:3">层层层层层层层33333<p>层层层层层层层33333<p>层层层层层层层33333<p></div>