IFRAME Inline Frame

Source: Internet
Author: User

Iframe-Set height and width

The height and Width properties are used to specify the heights and widths of the IFRAME.

The default unit of a property value is pixels, but it can also be set in percentages (such as "80%").

Instance
<iframe src= "demo_iframe.html" width= "height=" ></iframe>

Iframe-Delete Border

The Frameborder property specifies whether the border around the IFrame is displayed.

Setting the property value to "0" allows you to remove the border:

Instance
<iframe src= "demo_iframe.html" frameborder= "0" ></iframe>


Use IFRAME as the target of the link

The IFRAME can be used as the target for the link.

The target property of the link must reference the Name property of the IFRAME:

<!DOCTYPE HTML><HTML><Body><iframesrc= "/example/html/demo_iframe.html"name= "Iframe_a"></iframe><P><ahref= "http://www.w3school.com.cn"Target= "Iframe_a">W3School.com.cn</a></P><P><b>Comments:</b>Because the target of the link matches the name of the IFRAME, the link opens in the IFRAME.</P></Body></HTML>







IFRAME Inline Frame

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.