FRAMESET.gt;.Lt; FRAME.gt;
.lt; NOFRAMES.gt;
.lt; IFRAME.gt;
please also understand the difference between the containment mark and the empty mark first, please see the concept of HTML.
framework concept:
the so-called framework is that the web page is divided into several framed windows and multiple URL. Only.Lt; FRAMESET.gt;.Lt; FRAME.gt; and all frame tags need to be placed in a general HTML file, which records only how the framework is divided and does not display any data, so you don't have to put in.Lt; BODY.gt; the browser must read the file instead of the other window files. .lt; FRAMESET.gt; is used to divide frame windows, each frame window is marked by a.Lt; FRAME.gt; tags,.Lt; FRAME.gt; must be used in.Lt; FRAMESET.gt; range. The following examples:
[code].lt; frameset cols=.quot; 50%, *.quot;.Gt;
.lt; frame name=.quot; hello.quot; src=.quot. In part, the left is displayed on the up2u.html, and the right one displays the me2.html file,.Lt; FRAME.gt; the mark marked is always in the upper and lower order from the left to the right.
this section is much the same as the [framework] of the Composer classroom, but this section adds content and more detail, just as any other chapter does not mention web making tools, if you have learned that HTML believes that you will not choose a tool like Composer, FrontPage.
=.Lt; FRAMESET.gt;.Lt; FRAME.gt;:
.lt; FRAMESET.gt; referred to as framework markup to declare the HTML file as the framework mode and to set the window on how to split it.
.lt; FRAME.gt; it only sets parameter properties in a window.
.lt; FRAMESET.gt; parameter setting:
example:
[code].lt; frameset rows=.quot; 90, *.quot; frameborder=.quot; 0.quot; border=0; Integer values, percentages, and * represent occupancy space. The number of values represents the number of viewports and is separated by commas. For example, COLS=.quot; 30, *, 50%.quot; can be cut into three windows, the first window is the width of 30 pixels, an absolute partition, and the second window is left after the first and third window is allocated, and the third window accounts for the width of the whole picture as a phase pair. You can adjust the numbers by yourself.
ROWS=.quot; 120, *.quot;
is horizontal cut, the picture is divided up and down, the numerical setting is the same as above. Only the two parameters of COLS and ROWS are not in the same.Lt; FRAMESET.gt; in the markup, the frame of this type can not be displayed by Netacape by chance, and multiple partitions are used.
frameborder=.quot; 0.quot;
set the border of the framework, its values are only 0 and 1, 0 indicates no borders, and 1 indicates the border. (avoid using yes or no)
border=.quot; 0.quot;
set the border thickness of the frame in pixels.
bordercolor=.quot; #008000.quot;
set the border color of the frame. Please refer to the color value.
framespacing=.quot; 5.quot;
represents the distance between the frame and the frame.
.lt; FRAME.gt; parameter setting:
example:
[code].lt; frame name=.quot; top.quot; src=.quot; a.html.quot; marginwidth=.quot; societies; societies; societies; societies; societies; societies; minorities; E]
SRC=.quot; a.html.quot;
set the name of the web page to be displayed in this box window, and each window must correspond to a Web Archive. You can use the absolute path or the relative path.
NAME=.quot; top.quot;
set the name of this frame window so that frames can be specified as links, but must be named arbitrarily.
frameborder=0
set the border of the frame, the value is only 0 and 1, 0 indicates no borders, and 1 indicates the border. (avoid using yes or no)
framespacing=.quot; 6.quot;
represent the distance between the frame and the frame.
bordercolor=.quot; #008000.quot;
set the border color of the frame. Color values refer to [HTML analysis].
scrolling=.quot; Auto.quot;
set whether to display the scroll, YES to show the scroll, NO to show no display at any rate, AUTO is shown as the case.
noresize
setting does not allow users to change the size of the frame, and without setting this parameter, the user can pull the frame at random and change its size.
marginhight=5
represents the space reserved for the edge of the frame height.
marginwidth=5
represents the space reserved by the edge of the frame width.
below is a number of examples: (the same as the framework of the Composer classroom)
HTML Code
[code].lt; frameset rows=.quot; frameset rows=.quot;.Gt;.Gt; dialectical; dialectical; dialectical; /frameset.gt; [/code]
HTML Code
[code].lt; frameset rows=.quot; 80, *, 80.quot;.Gt. Ot;.Gt;
.lt; /frameset.gt; [/code]
HTML Code
[code].lt; frameset
.lt; /frameset.gt;
.lt; frame name=.quot; right.quot; src=.quot; c.html.quot. T;.Gt;
.lt; frame name=.quot; lower_left.quot; src=.quot; b.html.quot;.Gt;
.lt. Left.quot; src=.quot; a.html.quot;.Gt;
.lt; frameset rows=.quot; 80, *.quot;.Gt;
in.Lt; frameset.gt; the tag range is added to.Lt; /NOFRAMES.gt; the following is an example:
[code].lt; frameset rows=.quot; 80, *.quot; Browser。
.lt; /body.gt;
.lt; /noframes.gt;
.lt; frame name=.quot; top.quot; src=.quot. But if the browser does not support the framework, the unidentified markup is skipped, and the markup is unscramble, so it is placed in.Lt; noframes.gt; the text within the scope will be displayed.
.Lt; IFRAME.gt;:
this tag is only applicable to IE (comet: is also used in FireFox). Its function is to insert a frame window in the middle of a page to display another file. It is a block tag, but the enclosed words can only be displayed when the browser does not support the iframe tag, such as.Lt; noframes.gt; you can put some reminding words and so on. Usually iframe matches a JavaScript that recognizes a browser better, and if JavaScript recognizes that the browser is not a Internet Explorer, it will switch to another version. PS: be sure to use.Lt; /iframe.gt; shut down, otherwise the contents will not show up.
.lt; iframe.gt; the parameters are set as follows:
example: [code].lt; iframe src=.quot; iframe.html.quot; name=.quot; test.quot; align=.quot; societies; societies; societies; societies; societies; minorities; Yes.quot;.Gt;.Lt; /iframe.gt; [/code]
src=.quot; iframe.html.quot;
the file source for the box window is required to add a relative or absolute path to the file name except for the file name.
name=.quot; test.quot;
this frame window name, which is required to link the target parameters of the tag,
align=.quot; MIDDLE.quot;
the optional value is left, right, top, and > .
marginwidth=.quot; 1.quot; marginheight=.quot; 1.quot;
the space reserved for the inserted files and borders.
frameborder=.quot; 1.quot;
use 1 to display the border, and 0 do not show. (can be yes or no)
scrolling=.quot; Yes.quot;
use Yes to indicate permissible scrolling, and No does not allow scrolling.