<div style="z-index:100"></div>
<iframe style="z-index:5"></iframe>
try it ?试试看,不行的话,就没有办法了
<iframe style="z-index:5"></iframe>
try it ?试试看,不行的话,就没有办法了
解决方案 »
- 下拉菜单confirms在safari没法出现提示及跳转页面.请高手指点
- 我想请教一段代码是什么意思,望高手不吝赐教,关于百度logo龙
- 求助:注册页面效果如何达成
- 如何同时读取多个TXT文本
- 如何把一个button用JavaScript把它变成submit?
- 问一在方法中的引用~
- 想要一个滚动图片的代码,像msn网站首页左上角那个
- 帮改变一下JS控制方式
- 我想做到单击下拉框中的选项,使文本框内容相应做出改变,没实现!谁能帮我?(可将我问题中的代码直接存成.htm文件调试,在线等候!) 2
- 前天刚接触javascript,问个关于排序的问题
- 一个关于调整网页字体的问题
- 如何判断userid只有english
下面的英文是说;IE4+支持z-index属性,但只有ie5.5+的iframe才支持iframe的z-index属性。就象那个讨厌的select一样是属于窗口级的[ie4,ie5]元素,不能使用z-index来定位顺序。
你可以采用visibility来让他隐藏或者调整位置到层的范围之外。Stacking Inline Floating Frames
Internet Explorer 4.0 and later supports the z-index attribute. However, only Internet Explorer 5.5 and later support the z-index attribute with inline floating frames[就是指IFRAME]. By specifying the z-order of floating frames, you can stack one frame on top of another.To specify the position of the inline floating frame, use the z-index attribute.<IFRAME SRC="frame.htm" STYLE="z-index:1" ></IFRAME>Positive z-index values are positioned above a negative (or lesser value) z-index. Two objects with the same z-index are stacked according to source order. A positive value positions the element above text that has no defined z-index, and a negative value positions it below. Set this parameter to null to remove the attribute.The zIndex property only applies to objects that have the position property set to relative or absolute.The property does not apply to windowed controls, such as select objects.As of Microsoft® Internet Explorer 5.5, the iframe object is windowless and supports the zIndex property. In earlier versions of Internet Explorer, the iframe object is windowed and, like all windowed controls, ignores the zIndex property. If you maintain Web pages that were designed for earlier versions of Internet Explorer that do not support the zIndex property, you might want to redesign the pages, especially if the pages contain iframe objects that are stacked on top of windowed controls, such as select objects. You can use the visibility attribute to hide windowed controls that you want an iframe object to overlap. You can also position windowed controls so that iframe objects do not overlap them.