Sub-frame
The HTML framework is the technique of dividing windows into multiple windows where each window displays different Web content, which is also called a sub-frame in the background.
1.Frameset
Note that if you write frameset on the page, you can't have the body because they both meet and fight.
<frameset></frameset>
Common Properties:
Cols the unit can write pixels or write percentages after the above content can also write * (* represents the remaining)
Rows Branch units can write pixels or write percentages and can write in addition to the above content * (* represents all remaining)
Frameborder Frame Border 0/1
Border Border thickness
2.Frame
To divide the window into several, there will be a corresponding number of frame tags appear
<frame/>
Common Properties:
Name to set the area a name to use as a jump
SRC Default Display page link
Noresize not allow border adjustment
Scrolling scroll bar
Auto|yes scroll bar appears |no no scroll bar appears
GCA, we divide three pages into different regions.
<! DOCTYPE html>
<meta charset= "UTF-8" >
<title> Sub-frame </title>
<frameset rows= "15%,*" >
<frame name= "Top" src= "http://www.baidu.com" noresize scrolling= "yes"/>
<frameset cols= "30%,*" >
<frame name= "left" src= "http://www.iqiyi.com" noresize/>
<frame name= "Right" src= "http://www.bilibili.com" noresize/>
</frameset>
</frameset>
Then we usually do not use these, more is the management of the descendant interface then we will use the SRC attribute column as
Let's get a descendant. Page Home
<! DOCTYPE html>
corresponding link files top.html
<! DOCTYPE html>
corresponding link files left.html
<! DOCTYPE html>
The corresponding two right1.html and right.html files
<! DOCTYPE html><! DOCTYPE html>
In fact, the main thing is our a tag target property value must correspond to our link jump frame
Name= "Corresponding value" is target= "the name value in the Frame" column as
<a href= "right1.html" target= "right1" > User login </a><a href= "right.html" target= "right1" > Browse users </a >
Frameset to achieve the framework of the internal jump, more for the site backstage
HTML---Frameset How to jump inside the frame--turn from the great God of Jade Fox