好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

如何让Flash不遮挡HTMLdiv元素的技巧_HTML/Xhtml_网页制作_html/css_W

今天在写一个flash广告代码的时候,因为flash自带的链接,容易被当成弹出广告,所以做了一个div层放到flash上面,这样链接都是a触发的不会被拦截,但发现flash一直处于div层上面,原来flash需要加个参数才可以。

让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的详细内容...

  阅读:30次