Flash位置:Chrome中的固定元素 [英] Flash lay over position: fixed element in chrome

查看:139
本文介绍了Flash位置:Chrome中的固定元素的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

通常情况下,我在使用firefox时,我编写CSS代码。但我的代码在使用chrome时有问题。

Normally, I'm using firefox when I'm writing css codes. But my codes have problem when using chrome.

我的固定菜单:

header{
  background-color: #2bd5ec;
  overflow:hidden;
  line-height: 200%;
  top:0;
  position:fixed;
  width:100%;
  z-index: 1;
}

当我滚动页面时,我的swf文件在后面。
我的SWF文件的CSS代码。

And when i'm scrolling the page my swf file is on behind. My css codes of swf file.

#swfFile{width: 500px;height: 500px;}

但是当我使用chrome swf文件是在菜单前面。
我必须改变什么?

But when I'm using chrome swf file is in front of menu. What I have to change?

推荐答案

它不是你的CSS的问题,而是你的swf对象的问题。您必须将嵌入的 wmode 设置为 transparent 。否则它将覆盖所有其他元素。

Its not a problem of your CSS but of your swf object. You have to set the wmode of your embed to transparent. Otherwise it will lay over all other elements.

<object>
    <embed wmode="transparent" height="550" width="733">
</object>

这篇关于Flash位置:Chrome中的固定元素的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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