How to make the iframe background transparent

Source: Internet
Author: User

Solution:
IE5.5 began to support transparent content of the floating framework. To define transparent content for a floating framework, the following conditions must be met.
1. The allowTransparency label attribute used with the iframe element must be set to true.
2. In the iframe content source document, the bgColor label attribute of the background-color or body element must be set to transparent.
Procedure:
1. Code containing the framework page.
<Body bgColor = "# eeeeee">
<Iframe allowTransparency = "true" src = "transparent.htm">
</Iframe>
2.transparent.htm Page code.
<Body bgColor = "transparent">
Transparent iframe document

This example mainly applies the allowTransparency attribute of the iframe object. iframe will be transparent when this attribute is set to true and the background color of the pages contained in the iframe is set to transparent (transparent.
Set or retrieve whether the object can be transparent.
BgColor sets or gets the background color of an object.

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.