可用iframe定义内联的子窗口(框架).width.height定于窗口大小,frameborder定义窗口的边框大小

<iframe src="demo_iframe.htm" width="200" height="200" frameborder="0"></iframe>

当用做链接的目标(target)时,iframe需用name属性

<iframe name="iframe_a" src="demo_iframe.htm"></iframe>
<p><a href="http://www.w3school.com.cn" target="iframe_a">W3School.com.cn</a></p>

 

posted on 2017-08-14 09:52  迷失的小幸运  阅读(127)  评论(0)    收藏  举报