最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

關(guān)于flash遮蓋div浮動層的解決方法

 更新時(shí)間:2010年07月17日 15:47:07   作者:  
關(guān)于flash遮蓋div浮動層
網(wǎng)上的解決方案:
From:http://codingforums.com/showthread.php?t=95109
(a) place Flash embed script in <div> container (I use SWFObject.js)[將flash嵌入腳本放到一個(gè)div容器中]
(b) add wmode=transparent to Flash embed script[增加wmode=transparent 到flash嵌入腳本]
(c) set <div id="flashcontent"> container with z-index:-1; [將外層容器的z-index設(shè)置為-1]
(d) set <body> tag with style .. position:relative;left:0px;top:0px;z-index:0;
(otherwise Firefox does not accept negative z-index)
(e) set floating iframe in container with z-index: 99;[將浮動的iframe在容器中的zindex設(shè)置為99]
(f) use CSS to position flashcontent and htmlcontent containers.[使用css來調(diào)整flash容器和html容器的位置]

其他方案網(wǎng)上比較多見,不做闡述.在此說下使用第一個(gè)方案如何解決:
復(fù)制代碼 代碼如下:

var so = new SWFObject("XXX.swf", "flashId", "寬度", "高度", "版本", "背景色");
//設(shè)置flash不遮蓋div層
so.addParam("wmode", "opaque");
so.write("flashcontent");

如此設(shè)置即可讓flash無法遮蓋住div.

相關(guān)文章

最新評論

松滋市| 南宫市| 阳原县| 阳朔县| 绥江县| 化州市| 响水县| 大田县| 盘锦市| 景宁| 威宁| 永平县| 濮阳县| 惠来县| 新昌县| 合阳县| 孟州市| 喜德县| 民勤县| 鞍山市| 温州市| 兴文县| 罗山县| 永丰县| 诸城市| 邯郸市| 潍坊市| 镇安县| 左云县| 贞丰县| 星子县| 牡丹江市| 临汾市| 海门市| 青岛市| 郎溪县| 五河县| 巴楚县| 七台河市| 白城市| 茶陵县|