When using swfobject, swf file ignores z-index

会有一股神秘感。 提交于 2019-12-22 23:17:35

问题


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


回答1:


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



回答2:


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



来源:https://stackoverflow.com/questions/7744760/when-using-swfobject-swf-file-ignores-z-index

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!