首页新闻找找看学习计划

弹出层div总是被embed视频遮盖住,怎么办

0
悬赏园豆:20 [待解决问题]

代码如下:

 $(function () {
                var src = $("#aaa embed").attr("src");
                
                flowplayer("tl_player", "/skins/wanmei/flowplayer/flowplayer-3.2.12.swf", {
                    clip: {
                        url: src,
                        autoPlay: false,
                        autoBuffering: false
                    }
                });
            });
            $(function () {
                $("embed").remove();
            });
<div id="tl_player" style="width: 320px; height: 250px; z-index: 1"></div>

页面生成后代码:

<div id="tl_player" style="width: 320px; height: 250px; z-index: 1">
<object id="tl_player_api" width="100%" height="100%" type="application/x-shockwave-flash" data="/skins/wanmei/flowplayer/flowplayer-3.2.12.swf" name="tl_player_api">
<param value="true" name="allowfullscreen">
<param value="always" name="allowscriptaccess">
<param value="high" name="quality">
<param value="#000000" name="bgcolor">
<param value="config={"clip":{"url":"http://localhost:8014/video/2.flv","autoPlay":false,"autoBuffering":false},"playerId":"tl_player","playlist":[{"url":"http://localhost:8014/video/2.flv","autoPlay":false,"autoBuffering":false}]}" name="flashvars">
</object>

用的是flowplayer插件,用于显示视频。不论是改z-index 还是别的方法视频总是在最上面一层!!!!

求助!!!!!!已经试过很多办法,各位大侠帮帮忙

 

lijunmomo的主页 lijunmomo | 初学一级 | 园豆:34
提问于:2014-10-17 09:34
< >
分享
所有回答(3)
1

z-index 请和 position 一块使用

参考http://www.w3school.com.cn/tiy/t.asp?f=csse_zindex2

zhibudao | 园豆:525 (小虾三级) | 2014-10-17 09:56

不管用的,我都试过了!

支持(0) 反对(0) lijunmomo | 园豆:34 (初学一级) | 2014-10-18 14:45
0

把z-index调大一点.

晓菜鸟 | 园豆:2564 (老鸟四级) | 2014-10-17 11:11
0

<param name=”wmode" value="opaque">

ThreeTree | 园豆:1490 (小虾三级) | 2014-11-06 01:20
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册