一 22
保持layer在最前面,而不被Iframe、Object所覆盖
JS/AJAX186 views
只要在Layer中再插Iframe 或 Object 设z-Index值
HTML 代码片段如下:
<div z-Index:2><object xxx></object></div> # 前面
<div z-Index:1><object xxx></object></div> # 后面
<div id="Layer2" style="position:absolute; top:40;width:400px; height:95px;z-index:2"><table height=100% width=100% bgcolor="#ff0000"><tr><td height=100% width=100%></td></tr></table><iframe width=0 height=0></iframe></div>
<div id="Layer1" style="position:absolute; top:50;width:200px; height:115px;z-index:1"><iframe height=100% width=100%></iframe></div>
Tags: javascript
2 Responses to “保持layer在最前面,而不被Iframe、Object所覆盖”
Leave a Reply
You must be logged in to post a comment.
一月 23rd, 2007 at 06:22
我顶
一月 23rd, 2007 at 15:05
已经很久没弄js菜单了,不知道加了还会不会被<select>挡住。有没有人愿意测试一下。