Use of HTML iframe

Syntax: <iframe src = "quote page address" name = "framework identifies the name" ...> </ iframe>

<! DOCTYPE HTML>
<HTML>
<head lang = "EN">
<Meta charset = "UTF-. 8" />
<head>
<title> iframes simple use </ title>
</ head>
<body>
  <iframes the src = "love.html" width = "500px " height = "230px" naem = "newPage" /> // src fill opening directly displayed in the window
</ body>
</ HTML>

Renderings:

 

iframe attributes of use:

<iframe> inline frame Common attributes include name, width, height. The name attribute which can be learned and anchor link front combine with each other to jump between pages. Specific steps are as follows:
1. the name attribute in the frame is opened, the key code is as follows:
<iframes name = "mainFram" the src = "subframe / the_second.html" />
2. target disposed on a target window attribute desired hyperlink display frame window name, key code is as follows:
<a href="subframe/the_second.html" target="mainFram"> below show the second page </a>

Code Example:

 

Renderings:

 

 

 

 

Guess you like

Origin www.cnblogs.com/aryl/p/11831765.html