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
<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
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
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
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)
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
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
Blank Page (margin) <frame marginwidth = # marginheight = #>
<Frameset Cols = 50%, 50%> <frame src = "a.html"> <frame src = "a.html" marginwidth = 50 marginheight = 50> </frameset> example
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