Home > Article > Web Front-end > How to Remove Borders from Embedded Iframes in IE6?
Removing Borders from Embedded Iframes
To achieve a seamless transition from your webpage's content to an embedded iframe, removing its default border is crucial, especially in IE6. This can be done by adding the frameBorder attribute with a value of zero.
Solution:
Embed your iframe with the following code:
<iframe src="myURL" width="300" height="300" frameBorder="0"> Browser not compatible. </iframe>
By setting frameBorder to "0," you effectively hide the iframe's border, ensuring a smooth visual integration between your webpage and the iframe's content. This attribute is supported by IE6 only.
The above is the detailed content of How to Remove Borders from Embedded Iframes in IE6?. For more information, please follow other related articles on the PHP Chinese website!