22

只要在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:

作者:堕落天使

2 Responses to “保持layer在最前面,而不被Iframe、Object所覆盖”

  1. techtiger Says:

    我顶

  2. jock Says:

    已经很久没弄js菜单了,不知道加了还会不会被<select>挡住。有没有人愿意测试一下。grin

Leave a Reply

You must be logged in to post a comment.

Switch to our mobile site