我怎么用z-index 不管用啊!

解决方案 »

  1.   

    可以用Flash变成透明的参数:<param name="wmode" value="transparent"><HTML>
     <HEAD>
      <TITLE> 下拉列表 </TITLE>
      <style>
      .menutitle{
                 font-family:黑体;
     font-size:15;
     width:100;
     height:14;
     background-color:#ff0000;
     position:absolute;top:80;
                }
      .menu{
           
            font-family:黑体;
    font-size:15;
    width:100;
    height:14;
    background-color:#000000;
    position:absolute;top:80;
    visibility:hidden;
           }
      </style>
     </HEAD> <BODY onmouseover="hidemenu();" bgcolor="#000000">
     <p><font color="#0000FF" size="5" face="全真综艺体">下拉列表</font></p>
     <hr>
    <table><tr><td>
     <span id=mt1 class="menutitle" style="left:400; z-index:2" onmouseover="showmenu();">
     <font color="white">科技公司</font><br>
     </span>
    </td><tr>
    </talbe>
     <span id=m1 class="menu" style="left:400;filter:progid:DXImageTransform.Microsoft.gradient        (startcolorstr="white",endcolorstr=#000000,gradientType=1); 
           left:10;z-index:1 " onmouseover="showmenu();">
     科技公司<br>
     <a href="http://www.mgz.net.cn"><font color="white">mgz福彩网</font></a><br>
     <a href="http://www.mgz.net.cn"><font color="white">bbb</font></a><br>
     <a href="http://www.mgz.net.cn"><font color="white">aaa</font></a><br>
     <a href="http://www.mgz.net.cn"><font color="white">cccdgfhs</font></a><br>
     </span>
    <span style="position:absolute;top:0;left:1; z-index:1">
      <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="699" height="444">
        <param name="movie" value="D:/LiuLi/1.swf">
        <param name="quality" value="high">
        <param name="wmode" value="transparent">//这个参数是“透明值”
      <embed src="D:/LiuLi/1.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="699" height="444"></embed></object>
     </span>
    <script language="javascript">  
    function hidemenu(){
    m1.style.visibility="hidden";
    }
    function showmenu(){m1.style.visibility="visible";
                        event.cancelBubble=true;
    }
    </script>
     </BODY>
    </HTML>
      

  2.   

    haha 楼上的 你就把第一句给他就行了  后边的代码看上去有点吓人flash属性变透明后它的叠放顺序就随层的走了  要不 它永远最高