当使用swfobject时,swf文件忽略z-index [英] When using swfobject, swf file ignores z-index

查看:154
本文介绍了当使用swfobject时,swf文件忽略z-index的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有这个问题,如果我使用SWFObject附加一个swf文件,它会忽略我的css规则z-index。我试图设置父容器,SWF文件,以及它周围的一切;没有什么似乎为我工作。有没有人遇到这个问题,可以给我一些有用的建议?

谢谢,
凯尔

  var params = {};解决方案

确保使用透明wmode。
params.wmode =transparent;
swfobject.embedSWF(file.swf,id_name,100,100,10.0.0,false,false,params);


I have this issue where if I append a swf file using SWFObject, it ignores my css rules for z-index. I have tried to set the parent container, the swf file, and everything around it; nothing seems to work for me. Has anyone ran into this issue and could give me some helpful advice?

Thanks, Kyle

解决方案

Make sure your using "transparent" wmode.

var params = {};
params.wmode = "transparent"; 
swfobject.embedSWF("file.swf", "id_name", "100", "100", "10.0.0",false,false,params);

这篇关于当使用swfobject时,swf文件忽略z-index的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆