让flash置于DIV层之下的方法,让flash不挡住飘浮层或下拉菜单,让Flash不档住浮动对象或层的关键参数:wmode=opaque。
方法如下:
针对IE 在 内加上参数
针对FF 在 内加上参数wmode="opaque"
使用代码:
XML/HTML Code复制内容到剪贴板
22cn
body {
position:relative;
z-index:0;
margin:0; padding:0
}
body,td,th {
color: #333333;
}
*{margin:0; padding:0}
img{ border:0}
#jb51{ position:relative; width:300px; height:250px}
#div1 {
position:absolute;
left:0;
top:0;
width:300px;
height:250px; z-index:-1
}
#div2 {
position:absolute;
left:0;
top:0;
width:300px;
height:250px;
z-index:99999;
}
-->
document.write(' ');
document.write(' ');
document.write(' ');
document.write(' ');
document.write(' ');
查看更多关于如何让Flash不遮挡HTMLdiv元素的技巧_HTML/Xhtml_网页制作_html/css_W的详细内容...
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://haodehen.cn/did108429