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

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

 更新時(shí)間:2010年07月17日 15:47:07   作者:  
關(guān)于flash遮蓋div浮動(dòng)層
網(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;[將浮動(dòng)的iframe在容器中的zindex設(shè)置為99]
(f) use CSS to position flashcontent and htmlcontent containers.[使用css來(lái)調(diào)整flash容器和html容器的位置]

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

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

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

相關(guān)文章

最新評(píng)論

太和县| 沅江市| 嘉义县| 房产| 丰城市| 山东省| 普兰县| 海口市| 前郭尔| 金阳县| 乌什县| 夏河县| 赣榆县| 翁牛特旗| 云林县| 麻江县| 丹凤县| 南岸区| 仙居县| 泗阳县| 临西县| 同心县| 横峰县| 平罗县| 安阳市| 若羌县| 同江市| 长海县| 南投县| 灵宝市| 安顺市| 社会| 正蓝旗| 汤原县| 宽甸| 交口县| 南川市| 靖江市| 汝城县| 迭部县| 扎兰屯市|