HTML---Frameset How to jump inside the frame--turn from the great God of Jade Fox

Source: Internet
Author: User

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

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.