Lesson02_02 Frame Label_Basic Tutorial

WBOY
Release: 2016-05-16 12:08:50
Original
1520 people have browsed it

Use frames to display multiple web pages in one window

  • Used to define how many frames there are in the frameset and how each frame is arranged!
    The tag pair is nested in tag pairs can also be nested in other tag pairs. tag pairs cannot be nested in < /body> tag pair, using tag pair cannot nest and other tags located in tag pair Tag.
    For example, the following code is wrong:
    Example 1:
    <html>
    <body>
    <frameset cols="30%,*">
    <frame>
    <frame>
    </frame>
    </body>
    </html>
    Copy after login
    Example 2:
    <html>
    <frameset cols="30%,*">
    <body>
    <frame>
    <frame>
    </body>
    </frame>
    </html>
    Copy after login
    Attribute: ##>
    Attribute name Zuo Use
    rows Divided into several rows, it can be pixel value or % ratio
    Example: rows="20,30%,*,*"The last two * are equally divided
    cols Divided into several lines, it can be pixel value or % ratio
    Example: cols="20,30%,*,*"The last two * are equally divided
    border Width of each border
    frameborder Whether to display the border, the values ​​are: "1","0","no","yes"
    is placed between to define a specific frame window.
  • Attribute nameeffectscrSet the initial displayed web pagenameFrame window namescrollingWhether to display scroll bars. The default is: auto, which can be yes or nonoresizeIs it possible to change the frame size by dragging with the mouse
  • is used to display text in browsers that do not support
    For example:
    <noframe>
    <body>
    <p>This is a frame window, but your browser does not support it! </p>
    </body>
    </noframe>
    
    Copy after login
    At this time, if the browser does not support frames, the above text will be displayed!
  • does not need to be placed in the pair. Its attributes are the same as . For example:
  • code show as below The effect is as follows


  • Related labels:
    source:php.cn
    Statement of this Website
    The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
    Popular Tutorials
    More>
    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template