Use frames to display multiple web pages in one window
Used to define how many frames there are in the frameset and how each frame is arranged!
The tag pair is nested in tag pairs can also be nested in other tag pairs. tag pairs cannot be nested in < /body> tag pair, using tag pair cannot nest and other tags located in tag pair Tag.
For example, the following code is wrong: Example 1:
<html>
<body>
<frameset cols="30%,*">
<frame>
<frame>
</frame>
</body>
</html>
Example 2:
<html>
<frameset cols="30%,*">
<body>
<frame>
<frame>
</body>
</frame>
</html>
Attribute:
Attribute name |
Zuo Use |
rows |
Divided into several rows, it can be pixel value or % ratio Example: rows="20,30%,*,*"The last two * are equally divided |
cols |
Divided into several lines, it can be pixel value or % ratio Example: cols="20,30%,*,*"The last two * are equally divided |
border |
Width of each border |
frameborder |
Whether to display the border, the values are: "1","0","no","yes" |
##>
is placed between to define a specific frame window.
Attribute name
| effect |
scr
| Set the initial displayed web page |
name
| Frame window name |
scrolling
| Whether to display scroll bars. The default is: auto, which can be yes or no |
noresize
| Is it possible to change the frame size by dragging with the mouse |
is used to display text in browsers that do not support
For example: <noframe>
<body>
<p>This is a frame window, but your browser does not support it! </p>
</body>
</noframe>
At this time, if the browser does not support frames, the above text will be displayed!
does not need to be placed in the pair. Its attributes are the same as . For example:
code show as below |
The effect is as follows |
|
|
Statement:The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn