开发者

When using swfobject, swf file ignores z-index

开发者 https://www.devze.com 2023-04-12 09:12 出处:网络
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

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);


Z-index is ignored by Flash Player, you can't control it. Here's a quick overview with examples.

0

精彩评论

暂无评论...
验证码 换一张
取 消