您的位置:寻梦网首页编程乐园HTML园地HTML实用教程
HTML实用教程
作者:佚名 来源:梦之都(www.dreamdu.com)

20.5. HTML嵌套框架

框架可以嵌套,可以实现网页的分层。

引用网址:http://www.dreamdu.com/xhtml/

<frameset rows="20%, *, 15%">
    <frame src="http://www.dreamdu.com/xhtml/" />
    <frameset cols="20%, *">
        <frame src="http://www.dreamdu.com/xhtml/" />
        <frame src="http://www.dreamdu.com/xhtml/" name="show" />
    </frameset>
    <frame src="http://www.dreamdu.com/xhtml/" />
    <noframes>
        <body>
            <p>梦之都使用了框架技术,但是您的浏览器不支持框架,请升级您的浏览器以便正常访问梦之都。</p>
        </body>
    </noframes>
</frameset>

上面是一个经典的示例,定义了三行两列的框架。一个页面通常分为上部,中部与下部,而中部又分为左侧导航与右侧内容。

HTML嵌套框架示例 -- 可以尝试编辑

HTML视频教程