用z-index:xxx是不行的, 有好办法 吗谢谢

解决方案 »

  1.   

    我印象中在IE5。5里好象不会的,我现在是IE4,我正在想办法。
      

  2.   

    关于iframe的z-index属性的解答:
    下面的英文是说;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&#174; 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.