Home > Web Front-end > H5 Tutorial > H5 learning journey-H5 framework (13)

H5 learning journey-H5 framework (13)

黄舟
Release: 2017-02-17 14:43:25
Original
1688 people have browsed it

H5 frame syntax introduction: frame: The frame plays a great role in the design of the page. frameSet: The frameset tag defines how to divide the window into frames. Each frameset defines a number of rows or columns, rowS /COLS specifies the area of ​​the screen occupied by each row or column noresize: fixed frame size cols: row ratio rows: column ratio iframe: inline frame

Code example:

<!DOCTYPE html><html lang="en"><head>
    <meta charset="UTF-8">
    <title>H5表格提交</title></head>
   <frameset cols="20%,50%,30%">
       <frame src="framea.html">
       <frame src="frameb.html">
       <frame src="framec.html">
   </frameset></html>
Copy after login
Copy after login

! ! ! ! ! Rendering

H5 learning journey-H5 framework (13)

! ! ! ! ! ! The above two tags are outdated. The following introduces the inline tag iframe

which uses index, framec, frameb, and framea. It is nested layer by layer in the form of iframe and demonstrates the target of the a tag. The attribute, parent, means opening in the previous nested parent control and top means opening in the topmost control

index code

<!DOCTYPE html><html lang="en"><head>
    <meta charset="UTF-8">
    <title>H5表格提交</title></head>

    index    <iframe src="framec.html" width="800px" height="800px"></iframe></html>
Copy after login
Copy after login

framec code

<!DOCTYPE html><html lang="en"><head>
    <meta charset="UTF-8">
    <title></title></head><body bgcolor="#ffd700">
    framec    <br/>
    <iframe src="frameb.html" width="600px" height="600px" ></iframe></body></html>
Copy after login
Copy after login

frameb code

<!DOCTYPE html><html lang="en"><head>
    <meta charset="UTF-8">
    <title></title></head><body bgcolor="black">
    frameB    <br/>
    <iframe src="framea.html" width="400px" height="400px"></iframe></body></html>
Copy after login
Copy after login

framea code

<!DOCTYPE html><html lang="en"><head>
    <meta charset="UTF-8">
    <title></title></head><body bgcolor="#ff1493">
    frameA    <a href="http://wwww.baidu.com" target="_self">百度一下</a></body></html>
Copy after login
Copy after login

self renderings

H5 learning journey-H5 framework (13)

##parent renderings

H5 learning journey-H5 framework (13)

H5 frame syntax introduction: frame: The frame plays a great role in the design of the page. frameSet: The frameset tag defines how to divide the window into frames. Each frameset defines a number of rows or columns. rowS/COLS specifies each row or column. The area occupied by each column on the screen noresize: fixed frame size cols: row ratio rows: column ratio iframe: inline frame

Code example:

<!DOCTYPE html><html lang="en"><head>
    <meta charset="UTF-8">
    <title>H5表格提交</title></head>
   <frameset cols="20%,50%,30%">
       <frame src="framea.html">
       <frame src="frameb.html">
       <frame src="framec.html">
   </frameset></html>
Copy after login
Copy after login

! ! ! ! ! Rendering

H5 learning journey-H5 framework (13)

! ! ! ! ! ! The above two tags are outdated. The following introduces the inline tag iframe

which uses index, framec, frameb, and framea. It is nested layer by layer in the form of iframe and demonstrates the target of the a tag. The attribute, parent, means opening in the previous nested parent control and top means opening in the topmost control

index code

<!DOCTYPE html><html lang="en"><head>
    <meta charset="UTF-8">
    <title>H5表格提交</title></head>

    index    <iframe src="framec.html" width="800px" height="800px"></iframe></html>
Copy after login
Copy after login

framec code

<!DOCTYPE html><html lang="en"><head>
    <meta charset="UTF-8">
    <title></title></head><body bgcolor="#ffd700">
    framec    <br/>
    <iframe src="frameb.html" width="600px" height="600px" ></iframe></body></html>
Copy after login
Copy after login

frameb code

<!DOCTYPE html><html lang="en"><head>
    <meta charset="UTF-8">
    <title></title></head><body bgcolor="black">
    frameB    <br/>
    <iframe src="framea.html" width="400px" height="400px"></iframe></body></html>
Copy after login
Copy after login

framea code

<!DOCTYPE html><html lang="en"><head>
    <meta charset="UTF-8">
    <title></title></head><body bgcolor="#ff1493">
    frameA    <a href="http://wwww.baidu.com" target="_self">百度一下</a></body></html>
Copy after login
Copy after login
self renderings

H5 learning journey-H5 framework (13)##parent renderings

H5 learning journey-H5 framework (13) The above is the content of H5 Learning Journey-H5 Framework (13). For more related content, please pay attention to the PHP Chinese website (www.php.cn)!


Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template