Google Chrome,Flash和z-index错误behvaiour [英] Google Chrome, Flash and z-index wrong behvaiour

查看:162
本文介绍了Google Chrome,Flash和z-index错误behvaiour的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须在包含Flash视频的iframe上显示div。 div的z-index被设置为9999,但是ifarame没有任何z-index。但是Google的谷歌浏览器版本低于谷歌浏览器,它在IE 7/8/9和Mozila Firefox中运行良好。



我使用的代码是

flash.html

 <!doctype html> 
< html>
< head>
< title> Flash - zIndex< / title>
< / head>
< body>
< div style =position:absolute; left:200px; top:200px; width:320px; height:220px; background-color:#fff; z-index:999; >
< iframe src =blank.htmlstyle =width:100%; height:100%;>
< / iframe>
< / div>
< div id =textDivstyle =position:absolute; z-index:9999; left:200px; top:200px; border:5px solid rgb(235,127,0); width:300px;高度:200像素;背景色:#FFF;溢出:汽车;>
这是文本div
< / div>
< div id =flashDivstyle =height:150px;>
< / div>