HTML Framework 1

Source: Internet
Author: User

9.3.1 Setting the framework source file properties--src

Basic syntax

<frameset>

<frame src= "URL" >

<frame src= "URL" >

...

</frameset>

Syntax description

In the HTML file, SRC is used to set the path to the frame load file. The path to a file can be a relative path or an absolute path

9.3.2 Add frame name--name

Basic syntax

<frameset>

<frame src= "URL" Name= "" >

<frame src= "URL" Name= "" >

...

</frameset>

Syntax description

In an HTML file, use the Name property in the frame <frame> tag to add a title to the frame without affecting the frame's display.

9.3.3 Set frame Border--frameborder

Basic syntax

<frameset>

<frame src= "URL" frameborder= "value" >

<frame src= "URL" frameborder= "value" >

...

</frameset>

Syntax description

In an HTML file, when you set the frame display effect with the Frameborder property in the frame <frame> tag, you can only set whether the frame's border is displayed,

The frameborder value is 0 o'clock, the border is not displayed, the frameborder value is 1 o'clock, and the border is displayed.

9.3.4 Show frame scroll bar--scrolling

Basic syntax

<frameset>

<frame src= "URL" scrolling= "value" >

<frame src= "URL" scrolling= "value" >

...

</frameset>

Syntax description

In the HTML file, there are three ways to set the scrollbar using the scrolling attribute in the frame <frame> tag:

? Yes: Add scroll bar? No: Do not add scroll bars? Auto: Automatically add scroll bars

9.3.5 Adjusting Frame size--noresize

Basic syntax

<frameset>

<frame src= "URL" Noresize >

<frame src= "URL" >

...

</frameset>

Syntax description

In the HTML file, the size of the left frame is not allowed to be changed using the Noresize property setting in the frame <frame> tag.

9.3.6 Set frame edge width and height--marginwidth and marginheight

Basic syntax

Syntax description

In the HTML file, the dimensions of the left frame are not allowed to be changed using the Marginwidth and Marginheight property settings in the frames <frame> tags.

9.3.7 add does not support frame markers <noframe>

Basic syntax

<frame src= "URL" >

<frame src= "URL" >

。。。

<noframes>

...

<noframes>

</frameset>

Syntax description

In the HTML file, the contents of the Web page file are displayed when the browser does not support frames by using the <noframes> properties in the framework <frame> tags.

Frame Set Properties:

9.4.1 Set frame set border width--frmaspacing

Basic syntax

<frameset frmaspacing= "" >

<frame src= "URL" frameborder= "value" >

<frame src= "URL" frameborder= "value" >

...

</frameset>

Syntax description

In an HTML file, when you set the frame display effect with the Frameborder property in the frame <frame> tag, you can only set whether the frame's border is displayed,

The frameborder value is 0 o'clock, the border is not displayed, the frameborder value is 1 o'clock, and the border is displayed.

9.4.2 Set frame set border color--bordercolor

Basic syntax

<frameset bordercolor= "" >

<frame src= "URL" >

<frame src= "URL" >

...

</frameset>

Syntax description

In the HTML file, use the BorderColor property in the frame <frame> tag to set the frame border color,

The property value after bordercolor can be an English word that represents a color, or it can be a #+ hexadecimal number (example: #0066ff).

9.4.3 split border around--cols

Basic syntax

<frameset cols= "*,*" >

<frame src= "URL" >

<frame src= "URL" >

...

</frameset>

Syntax description

In the HTML file, the Cols attribute is used to split the page left and right, either as a percentage or as a specific value.

9.4.4 up and down split border--rows

Basic syntax

<frameset rows= "*,*" >

<frame src= "URL" >

<frame src= "URL" >

...

</frameset>

Syntax description

In the HTML file, the Rows property can be used to split the page up and down, in the same way as left and right split.

Table 9-2 Floating Frame Properties

9.5.1 setting floating Frame Source file properties

Basic syntax

<body>

<iframe src= "URL" ></iframe>

</body>

Syntax description

In the HTML file, SRC is used to set the path to the frame's load file, and the path to the file can be either a relative path or an absolute path.

9.5.2 Add floating frame name--name

Basic syntax

<body>

<iframe src= "URL" name= "> </iframe>

</body>

Syntax description

In an HTML file, use the Name property in the frame <frame> tag to add a title to the frame without affecting the frame's display.

9.5.3 Setting the width and height of the floating frame--width and heights

Basic syntax

<body>

<iframe src= "URL" width= "height=" "></iframe>

</body>

Syntax description

,<iframe> tags in HTML files; The Width property can set the floating frame widths, and the height property sets the altitude of the floating frame.

9.5.4 set the alignment of a floating frame--align

Basic syntax

<body>

<iframe src= "URL" name= "align=" center "></iframe>

</body>

Syntax description

In the HTML file, use the Align property in the floating frame <iframe> tag to set the alignment of the floating frame.

Center: center alignment; left: Align Right;

9.6.1 Common Frame Add link

Basic syntax

<frameset cols= "380*,380*" >

<frame src= "left.html" >

<frame src= "right.html" name= "right" >

</frameset>

Syntax description

Using the cols attribute in the <frameset> tag to split left and right, the page file on the left is from left.html, and the page file from right.html.

9.6.2 Floating Frame Add link

Basic syntax

<iframe src= "http://www.broadview.com.cn" width= "" height= "380" name= "iframe" ></iframe>

Syntax description

Define a floating frame, and then link the content you want to display in the Web page to the floating frame.

HTML Framework 1

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.