Beginner's website | Experience recently in the Web programming, summed up some of the use of frameset skills, for everyone to reference oh, or first analysis of the framework bar!
Frame Marker
<FRAMESET> <FRAME>
<NOFRAMES>
<IFRAME>
To understand this "HTML thorough analysis" of the mark classification, please see "Mark List".
Please also understand the distinction between containment and empty tags, see "HTML concept."
Framework Concept:
The frame is that the Web page is divided into several box windows, while obtaining multiple URLs. Just <FRAMESET> <FRAME>, all the frame tags need to be placed in a total HTML file that only records how the frame is segmented, does not display any data, so you do not have to put in the <BODY> tag, Browse this frame must read this file face is not the other box window file. <FRAMESET> is used to divide the frame window, each window frame is marked by a <FRAME> mark,<frame> must be used in <FRAMESET> scope. The following example:
<frameset cols= "50%,*" > <frame name= "Hello" src= "up2u.html" > <frame name= "Hi" src= "me2.html" >
</frameset>
In this example <FRAMESET> the screen into the left and right part of the up2u.html, the right side will show the me2.html the file,<frame> marked by the box window is always on the top down, from the left to the right-hand order
<FRAME>
Usage: Define a Frame
Start/End identification: mandatory/illegal
Properties: Name= "..." defines the name of the frame
Scr= "..." defines the source of the content displayed in the frame
Frameborder= "..." defines the bounds between frames (0 or 1)
Margwidth= "..." Sets the spacing between the bounds of the frame and the contents of it
Margheight= "..." Sets the bounds of the frame and the spacing between the contents
Noresize= "..." to keep the frame size unchanged
Scrolling= "..." Sets the way the scroll bar is represented (auto, yes, no)
Null: Not Allowed
<FRAMESET>...</FRAMESET>
Usage: Defines the layout of frames in a window
Start/End Identification: must/must
Attribute: rows= the number of "..." Set lines
Cols= "..." Set the number of columns
Internal event triggers when a document is loaded
Onunload= "..." internal event triggers when unloading a document
Null: Not Allowed
Note: Frameset can be nested
The above is just the simplest frame setting, and if you want to achieve a more appropriate effect, add or modify the following parameters.
Mark:<frameset> Example: <frameset rows= "90,*" frameborder= "0" border=0 framespacing= "2" border= "2" bordercolor= "#008000" ></ Frameset>
Function: Declares HTML file as frame mode and sets how the window splits.
Parameters:
Cols= "90,*"
Vertical cutting screen (such as about two frames), accept the integer value, Percentage, * represents occupy the remaining space. The number of values represents the number of windows divided into and separated by commas. For example, cols= "30,*,50%" can be cut into three windows, the first window is the width of pixels, for an absolute segmentation, the second window is when the first and third window after the allocation of the remaining space, the third window is the entire window screen 50% width for a relative split. You can adjust the numbers yourself.
Rows= "120,*"
This is the transverse cutting, the picture is separated from top to bottom, numerical setting. COLS and ROWS two parameters should not be placed in the same <FRAMESET> tag, because Netacape accidentally can not show this type of frame, as far as possible using multiple segmentation, as in the above examples.
Frameborder= "0"
Sets the frame's border with values of only 0 and 1, 0 for No borders, and 1 for borders.
Border= "0"
Sets the border thickness of the frame, in pixels.
Bordercolor= "#008000"
Sets the border color of the frame. Color values Please refer to the "Principle of tinting".
Framespacing= "5"
Represents the distance between a frame and a frame that remains blank.
Mark:<frame> Example: <frame name= "Top" src= "a.html" marginwidth= "5" marginheight= "5" scrolling= "Auto" frameborder= "0" noresize framespacing= "6" bordercolor= "#0000FF" >
Function: Set the parameter properties in each frame window.
Parameters:
Src= "A.html"
Set this window to display the file name of the page, each window must correspond to a page file.
Name= "Top"
Set the name of the box window so that you can specify the frame as a link, but it must be named arbitrarily.
Frameborder=0
Sets the frame's border with values of only 0 and 1, 0 for No borders, and 1 for borders.
framespacing= "6"
Represents the distance between a frame and a reserved space between frames.
Bordercolor= "#008000"
Sets the border color of the frame.
Scrolling= "Auto"
Set whether to display the scroll, YES to show the scroll, no to show the scroll in any case, AUTO depending on the situation.
Noresize
Setting does not allow the user to change the size of the box, without setting this parameter, the user can arbitrarily pull the frame to change its size.
Marginhight=5
Represents the space reserved by the edge of a frame's height.
Marginwidth=5
Represents the space reserved by the edge of the frame width.
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.