.被Flash挡住
设置Flash的参数:<param name="wmode" value="opaque">
<object classid="clsid:D7CDB6E-AE6D-cf-96B8-0000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,9,0" width="68" height="60"><param name="movie" value="http://pepsi.flash8.net/pepsi6860.swf">
<param name="wmode" value="opaque"><param name="quality" value="high"><embed src="/Files/BeyondPic/0060/006-/9/069087.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="68" height="60"></embed></object>
<div style="position:absolute;left:0;top:0;width:00px;height:0px;background:green">
</div>
或者用<param name="wmode" value="transparent">
<object classid="clsid:D7CDB6E-AE6D-cf-96B8-0000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,9,0" width="68" height="60"><param name="movie" value="http://pepsi.flash8.net/pepsi6860.swf">
<param name="wmode" value="transparent"><param name="quality" value="high"><embed src="/Files/BeyondPic/0060/006-/9/069087.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="68" height="60"></embed></object>
<div style="position:absolute;left:0;top:0;width:00px;height:0px;background:green">
</div>
.被图片挡住
这个估计是因为图片也放在层中,而图片所在层的Z轴索引值比该层大,所以被挡住,解决办法是更改该层的Z轴索引值至比图片层大。
<div style="position:absolute;left:0;top:0;z-index:;background:red;width:0px;height:70px">
<img src="/Files/BeyondPic/0060/006-/9/0690889887.gif">
</div>
<div style="position:absolute;left:0;top:0;z-index:;background:green;width:0px;height:70px">
<img src="/Files/BeyondPic/0060/006-/9/0690889887.gif">
</div>
<div style="position:absolute;left:90;top:80;z-index:;background:blue;width:0px;height:70px">
<img src="/Files/BeyondPic/0060/006-/9/0690889887.gif">
</div>
.被表单控件挡住
这个目前还没有完美的解决方法,一般都是在设计排版时就尽量避免这种情况,如果是万不得已,就在层经过表单控件时让表单控件隐藏,过后再让它显示:
<button onClick="oSelect.style.display='none';oLayer.style.display='inline'">显示层隐藏下拉选项</button><button onClick="oSelect.style.display='inline';oLayer.style.display='none'">显示下拉选项隐藏层</button>
<div style="position:absolute;left:0;top:0;z-index:;background:red;width:0px;height:0px">
z-index:<select id="oSelect"></select>
</div>
<div id="oLayer" style="position:absolute;left:0;top:60;z-index:;background:green;width:0px;height:70px;display:none">
z-index:<img src="/Files/BeyondPic/0060/006-/9/0690889887.gif">
</div>
当然还有用优先级别较高的控件来代替层的方法解决,但控件并非是每台机器上都有安装,而且控件的可定制性也差,也就是常说的兼容性问题:
hhctrl.ocx
<OBJECT id=hhctrl type="application/x-oleobject" classid="clsid:adb880a6-d8ff-cf-977-00aa00b7a" codebase="<I>file:</I>hhctrl.ocx#Version=,0,0," width=80 height=0>
<PARAM name="Command" value="Related Topics, MENU">
<PARAM name="Button" value="Menu">
<PARAM name="Item" value="[X-Eyes];http://x-lover.com/forums/">
<PARAM name="Item" value="闪客之吧;http://www.flash8.net">
<PARAM name="Item" value="零刻联盟;http://www.linkmeng.com/">
<PARAM name="Item" value="蓝色理想;http://www.blueidea.com/">
<PARAM name="Item" value="<a href="http://www.d.cn">D多媒体</a>;http://www.d.cn">
</OBJECT>
<select></select>
window.createPopup()窗口(需要IE.+支持)
<SCRIPT>
var oPopup = window.createPopup();
function showPopupWin(){
var oPopBody = oPopup.document.body;
oPopBody.style.backgroundColor = "green";
oPopup.show(0, 0, 80, 6,document.body);
}
</SCRIPT>
<BUTTON onclick="showPopupWin()">Click Me!</BUTTON><select></select>
<iframe src="index.asp"></iframe>
设置Flash的参数:<param name="wmode" value="opaque">
<object classid="clsid:D7CDB6E-AE6D-cf-96B8-0000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,9,0" width="68" height="60"><param name="movie" value="http://pepsi.flash8.net/pepsi6860.swf">
<param name="wmode" value="opaque"><param name="quality" value="high"><embed src="/Files/BeyondPic/0060/006-/9/069087.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="68" height="60"></embed></object>
<div style="position:absolute;left:0;top:0;width:00px;height:0px;background:green">
</div>
或者用<param name="wmode" value="transparent">
<object classid="clsid:D7CDB6E-AE6D-cf-96B8-0000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,9,0" width="68" height="60"><param name="movie" value="http://pepsi.flash8.net/pepsi6860.swf">
<param name="wmode" value="transparent"><param name="quality" value="high"><embed src="/Files/BeyondPic/0060/006-/9/069087.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="68" height="60"></embed></object>
<div style="position:absolute;left:0;top:0;width:00px;height:0px;background:green">
</div>
.被图片挡住
这个估计是因为图片也放在层中,而图片所在层的Z轴索引值比该层大,所以被挡住,解决办法是更改该层的Z轴索引值至比图片层大。
<div style="position:absolute;left:0;top:0;z-index:;background:red;width:0px;height:70px">
<img src="/Files/BeyondPic/0060/006-/9/0690889887.gif">
</div>
<div style="position:absolute;left:0;top:0;z-index:;background:green;width:0px;height:70px">
<img src="/Files/BeyondPic/0060/006-/9/0690889887.gif">
</div>
<div style="position:absolute;left:90;top:80;z-index:;background:blue;width:0px;height:70px">
<img src="/Files/BeyondPic/0060/006-/9/0690889887.gif">
</div>
.被表单控件挡住
这个目前还没有完美的解决方法,一般都是在设计排版时就尽量避免这种情况,如果是万不得已,就在层经过表单控件时让表单控件隐藏,过后再让它显示:
<button onClick="oSelect.style.display='none';oLayer.style.display='inline'">显示层隐藏下拉选项</button><button onClick="oSelect.style.display='inline';oLayer.style.display='none'">显示下拉选项隐藏层</button>
<div style="position:absolute;left:0;top:0;z-index:;background:red;width:0px;height:0px">
z-index:<select id="oSelect"></select>
</div>
<div id="oLayer" style="position:absolute;left:0;top:60;z-index:;background:green;width:0px;height:70px;display:none">
z-index:<img src="/Files/BeyondPic/0060/006-/9/0690889887.gif">
</div>
当然还有用优先级别较高的控件来代替层的方法解决,但控件并非是每台机器上都有安装,而且控件的可定制性也差,也就是常说的兼容性问题:
hhctrl.ocx
<OBJECT id=hhctrl type="application/x-oleobject" classid="clsid:adb880a6-d8ff-cf-977-00aa00b7a" codebase="<I>file:</I>hhctrl.ocx#Version=,0,0," width=80 height=0>
<PARAM name="Command" value="Related Topics, MENU">
<PARAM name="Button" value="Menu">
<PARAM name="Item" value="[X-Eyes];http://x-lover.com/forums/">
<PARAM name="Item" value="闪客之吧;http://www.flash8.net">
<PARAM name="Item" value="零刻联盟;http://www.linkmeng.com/">
<PARAM name="Item" value="蓝色理想;http://www.blueidea.com/">
<PARAM name="Item" value="<a href="http://www.d.cn">D多媒体</a>;http://www.d.cn">
</OBJECT>
<select></select>
window.createPopup()窗口(需要IE.+支持)
<SCRIPT>
var oPopup = window.createPopup();
function showPopupWin(){
var oPopBody = oPopup.document.body;
oPopBody.style.backgroundColor = "green";
oPopup.show(0, 0, 80, 6,document.body);
}
</SCRIPT>
<BUTTON onclick="showPopupWin()">Click Me!</BUTTON><select></select>
<iframe src="index.asp"></iframe>









