国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 編程 > JavaScript > 正文

關于flash遮蓋div浮動層的解決方法

2019-11-21 00:21:19
字體:
來源:轉載
供稿:網友
網上的解決方案:
From:http://codingforums.com/showthread.php?t=95109
(a) place Flash embed script in <div> container (I use SWFObject.js)[將flash嵌入腳本放到一個div容器中]
(b) add wmode=transparent to Flash embed script[增加wmode=transparent 到flash嵌入腳本]
(c) set <div id="flashcontent"> container with z-index:-1; [將外層容器的z-index設置為-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設置為99]
(f) use CSS to position flashcontent and htmlcontent containers.[使用css來調整flash容器和html容器的位置]

其他方案網上比較多見,不做闡述.在此說下使用第一個方案如何解決:
復制代碼 代碼如下:

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

如此設置即可讓flash無法遮蓋住div.
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 潜江市| 平潭县| 淮安市| 晋江市| 垦利县| 修文县| 霍邱县| 顺昌县| 延川县| 虞城县| 治多县| 辽宁省| 乐安县| 河南省| 沐川县| 博白县| 凌云县| 五莲县| 商都县| 石嘴山市| 安义县| 芮城县| 马边| 新昌县| 紫阳县| 灵丘县| 冷水江市| 阿巴嘎旗| 丹棱县| 建水县| 莎车县| 新晃| 阿尔山市| 大厂| 宁强县| 新竹市| 屏东县| 宜黄县| 桓台县| 湄潭县| 泽普县|