HTML 08: Multi-Window page (frames)

Source: Internet
Author: User
Document directory
  • <Frameset Cols = #>
  • <Frameset rows = #>
  • Cols & rows
  • The size of each window cannot be changed. <frame noresize>
  • <Frame frameborder #>#= Yes, NO/1, 0
  • Blank Page (margin) <frame marginwidth = # marginheight = #>
  • Scroll bar setting <frame scrolling =#># = yes, no, auto
Multi-Window page (frames)

 

 

Basic syntax

<Frameset>... </frameset>
<Frame src = "url">
<Noframes>... </noframes>

The text marked with <noframes> will only appear in browsers that do not support frames.

        <HTML>        <HEAD>        </HEAD>        <FRAMESET>             <FRAME SRC="url">             <NOFRAMES> ... </NOFRAMES>        </FRAMESET>        </HTML>

Size settings for each window

<Frameset Cols = #>

Vertically arrange multiple Windows:

<Frameset Cols = 30%, 20%, 50%> <frame src = "a.html"> <frame src = "B .html"> <frame src = "c.html"> </frameset> example
A B C
 

<Frameset rows = #>

Arrange multiple Windows horizontally:

<Frameset rows = 25%, 25%, 50%> <frame src = "a.html"> <frame src = "B .html"> <frame src = "c.html"> </frameset> example
A
B
C
 

Cols & rows

Arrange multiple Windows horizontally:

<Frameset Cols = 20%, *> <frame src = "a.html"> <frameset rows = 40%, *> <frame src = "B .html"> <frame src = "c.html"> </frameset> example
A B
C
 

The size of each window cannot be changed. <frame noresize>
By default, the window size can be changed.
 

Frame target)

Window identifier (frame name)
<Frame name = #>
<A href = URL target = #>
<Frameset Cols = 50%, 50%> <frame src = "a.html"> <frame src = "B .html" name = "hello"> </frameset> example
A B

Special four types of operations (very useful)
<A href = URL target = _ blank> New window
<A href = URL target = _ Self> This window
<A href = URL target = _ parent> parent window
<A href = URL target = _ top> entire browser window

Example

 

Appearance)

<Frame frameborder #>#= Yes, NO/1, 0
<Frameset rows = 30%, *> <frame src = "acol.html" frameborder = 1> <frameset Cols = 30%, *> <frame src = "bcol.html" frameborder = 0> <frame src = "ccol.html" frameborder = 0> </frameset> example

(A has borders, B and c do not)

A
B C
Settings of blank areas between windows
<Frameset framespacing #># = size of the blank area
<Frameset rows = 30%, * framespacing = 100> <frame src = "acol.html"> <frameset Cols = 30%, *> <frame src = "bcol.html"> <frame src = "ccol.html"> </frameset> example
A
B C
Border color <frameset bordercolor = #>
# = Rrggbb hexadecimal RGB digital, or the following predefined color names:
Black, Olive, teal, red, blue, maroon, navy, gray, lime,
Fuchsia, white, green, purple, silver, yellow, Aqua
<Frameset rows = 30%, * bordercolor = red> <frame src = "acol.html"> <frameset Cols = 30%, *> <frame src = "bcol.html"> <frame src = "ccol.html"> </frameset> example
A
B C
Blank Page (margin) <frame marginwidth = # marginheight = #>
<Frameset Cols = 50%, 50%> <frame src = "a.html"> <frame src = "a.html" marginwidth = 50 marginheight = 50> </frameset> example
Aaaa AA
AA
Scroll bar setting <frame scrolling =#># = yes, no, auto
# = The default value is auto.
 

Floating Frame)

<IFRAME src = # name ###>... </iframe>
# = URL of the initial Page
##= Frame name)
... = The text will only appear in browsers that do not support frames.
<Center> <IFRAME src = "a.html" name = "window"> here is a floating frame </iframe> <br> <a href = "a.html" target = "window"> load a </a> <br> <a href = "B .html" target = "window"> load B </a> <br> <a href =" ccol.html "target =" window "> load C </a> <br> </center> example

Display a.html

Load
Load B
Load C

 

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.