Lesson02_02 Frame Tag _ Basic Tutorial

Source: Internet
Author: User
A window with frames to display multiple pages
  • <frameset></frameset> is used to define how many frames are in the frameset and how each frame is arranged!
    <frameset></frameset> tags are nested in For example, the following code is wrong:
    Example one:
    
    Example two:
    
    Properties:
    Property name function
    Rows Divided into several lines, can be pixel values can also be% ratio
    Example: rows= "20,30%,*,*" after two * split
    Cols Divided into several lines, can be pixel values can also be% ratio
    Example: cols= "20,30%,*,*" after two * split
    Border Width of each border
    Frameborder Whether to display a border, the value is: "1", "0", "no", "yes"
    >
  • <frame></frame> is placed between <frameset></frameset> to define specific frame windows.
    Property name function
    Scr Set initial display of the Web page
    Name frame window Name
    Scrolling Whether to display scroll bars. The default is: auto, yes, no
    Noresize Can I use the mouse to change the size of the frame
  • <noframe></noframe> to display text in browsers that do not support <frame></frame>
    For example, the following:
    <noframe>
    <body>
    <p> This is a frame window, but your browser does not support! </p>
    </body>
    </noframe>
    
    at this point, if the browser does not support the frame will display the above text!
  • <iframe></iframe> does not need to be placed in <frameset></frameset>, whose properties are the same as <frame></frames> for example :
    code as follows effect is as follows
    <iframe Bor der=0 src= "Http://www.jb51.net" >


  • 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.