[Div + CSS] IFRAME highly adaptive in IE6 surfaced penetration Solution

Source: Internet
Author: User
In IE6, an IFRAME is usually needed for the surfaced layer to be penetrated by obj. This is the most effective solution currently, but this solution has its own shortcomings, that is, the height of IFRAME cannot be adaptive.
Maybe you will think that setting a height of 100% for IFRAME is not enough? Unfortunately, this problem cannot be solved.

One solution is to use the script to obtain the height of the surfaced layer and then assign it to IFRAME. The disadvantage is that the script is required to support and consume more system resources.
Another solution is provided:

  1. <! -[If IE 6]>

  2. <IFRAME frameborder = "0" style = "position: absolute; left: 0; top: 0; width: 100%; Z-index:-1; filter: alpha (opacity = 0); Border: solid; "> </iframe>
  3. <! [Endif]->

CopyCodeNote: The percentage height cannot be defined for IFRAME.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.