zoukankan      html  css  js  c++  java
  • HTML框架

    利用html框架制作如下页面:

    f1.f3.f4代码过于简单故略去。

    frameset为框架集,rows代表横向布局,cols代表列布局,其后的值为对应框架大小。

    frame为框架,noreseze表示框架固定,target表示跳转于所对应的框架。

    index.html代码

    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Insert title here</title>
    </head>
    <frameset rows ="120,*">
        <frame src="f1.html" ">
        <frameset cols="20%,*" >
            <frame src="f2.html" noresize="noresize"">
            <frameset rows="90%,10%">
                <frame src="f3.html" name="content">
                <frame src="f4.html">
            </frameset>
        </frameset>    
    </frameset>
    <noframes>
        <body>
        当前浏览器不支持框架
        </body>
    </noframes>
    </html>


    f2.html代码

    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Insert title here</title>
    </head>
    <body>
        菜单栏
        <a href="function1.html" target="content">菜单功能一</a><br>
        <a href="function2.html" target="content">菜单功能二</a><br>    
    </body>
    </html>
  • 相关阅读:
    Web 请求响应原理(转)
    openstack中的floating ip与阿里云的公网ip
    一起来说 Vim 语
    vsftpd.conf 详解与实例配置
    jquery 放大图片
    jQuery 之 .stop() 方法
    jquery 插件开发
    jquery 之效果
    jquery 之事件 多库共存(noConflict)
    测试网站是共享还是独立ip
  • 原文地址:https://www.cnblogs.com/daimaku/p/4185834.html
Copyright © 2011-2022 走看看