Home  >  Article  >  Web Front-end  >  Lesson02_02 Frame Label_Basic Tutorial

Lesson02_02 Frame Label_Basic Tutorial

WBOY
WBOYOriginal
2016-05-16 12:08:501518browse

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>
    Example 2:
    <html>
    <frameset cols="30%,*">
    <body>
    <frame>
    <frame>
    </body>
    </frame>
    </html>
    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>
    
    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


  • Statement:
    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