<iframe src="" allowtransparency="true">
Browser |
|
---|---|
Type |
|
The allowtransparency attribute of the IFRAME element specifies whether to allow a transparent background in the iframe.
<iframe src="example.html" allowtransparency="true"></iframe>
Attribute | Value | Explanation |
---|---|---|
allowtransparency=" " | true | allows the transparency |
false | not allows the transparency (default) |
Extension attribute. (Non standard attribute)
If you specify the "true" value for this attribute, add the following CSS for the BODY tag of the page to load into the iframe.
<body style="background-color: transparent;">