zoukankan      html  css  js  c++  java
  • 网页布局1

    转自:http://www.cnblogs.com/yzst/archive/2011/10/31/2229761.html

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>无标题文档</title>
    <style type="text/css">
    body{
     background:#fff;
     font:13px/1.5 Arial, Helvetica, sans-serif;
     margin:0;
     padding:0;
    }
    .rounded{
     background:#aaa url(images/lt.gif) top left no-repeat;
     100%;
    }
    .rounded h2{
     background:url(images/rt.gif) top right no-repeat;
     padding:20px 20px 10px;
     margin:0;
    }
    .rounded .main{
     background:url(images/r.gif) top right repeat-y;
     padding:10px 20px;
     margin:-2em 0 0 0;
    }
    .rounded .footer{
     background:url(images/lb.gif) bottom left no-repeat;
    }
    .rounded .footer p{
     color:#888;
     text-align:right;
     background:url(images/rb.gif) bottom right no-repeat;
     
     display:block;
     padding:10px 20px 30px;
     margin:-2em 0 0 0;
    }
    #header,#pagefooter,#containter{
     80%;
     margin: 0 auto;
    }
    #containter{
     position:relative;
     }

    #side{
     30%;
     margin-left:69%;
     }
    #c{
        69%;
     position:absolute;
     top:0px;
     left:0px;
     }
    </style>
    </head>

    <body>
    <div id="header">
     <div class="rounded">
     <h2>Page Header</h2>
        <div class="main">
         <p>
             这是一行文本,这里作为样例,显示在布局框中<br />
                这是一行文本,这里作为样例,显示在布局框中
                </p>
                </div>
                <div class="footer">
                <p>
                 查看详细信息
                    </p>
                </div>
                </div>
    </div>
     <div id="containter">
     <div id="c">
     <div id="content">
     <div class="rounded">
     <h2>Page content1</h2>
        <div class="main">
         <p>
             这是一行文本,这里作为样例,显示在布局框中<br />
                这是一行文本,这里作为样例,显示在布局框中
                </p>
                </div>
                <div class="footer">
                <p>
                 查看详细信息
                    </p>
                </div>
                </div>
            
    </div>
    <div id="content">
     <div class="rounded">
     <h2>Page content2</h2>
        <div class="main">
         <p>
             这是一行文本,这里作为样例,显示在布局框中<br />
                这是一行文本,这里作为样例,显示在布局框中
                </p>
                </div>
                <div class="footer">
                <p>
                 查看详细信息
                    </p>
                </div>
                </div>
            
    </div>
    </div>
    <div id="s">
     <div id="side">
     <div class="rounded">
     <h2>Page side1</h2>
        <div class="main">
         <p>
             这是一行文本,这里作为样例,显示在布局框中<br />
                这是一行文本,这里作为样例,显示在布局框中
                </p>
                </div>
                <div class="footer">
                <p>
                 查看详细信息
                    </p>
                </div>
                </div>
    </div>
    <div id="side">
     <div class="rounded">
     <h2>Page side2</h2>
        <div class="main">
         <p>
             这是一行文本,这里作为样例,显示在布局框中<br />
                这是一行文本,这里作为样例,显示在布局框中
                </p>
                </div>
                <div class="footer">
                <p>
                 查看详细信息
                    </p>
                </div>
                </div>
    </div>
    </div>
        </div>
    <div id="pagefooter">
     <div class="rounded">
     <h2>Page pagefooter</h2>
        <div class="main">
         <p>
             这是一行文本,这里作为样例,显示在布局框中<br />
                这是一行文本,这里作为样例,显示在布局框中
                </p>
                </div>
                <div class="footer">
                <p>
                 查看详细信息
                    </p>
                </div>
                </div>
    </div>         
    </body>
    </html>

  • 相关阅读:
    selenium 清空文本几种方法
    python之Chrome 启动参数
    python, selenium 之屏蔽提示框
    myeclipse 安装flex插件后变为中文 修改配置文件切换到英文界面
    用ant编译打包时 警告:编码 GBK 的不可映射字符
    redhat5.1上安装oracle 10.2g客户端及配置使用
    tomcat 1)启动时不识别执行启动命令 2)启动报错 3)关闭不了,用myEclipse启动时显示jvm_bind,端口占用
    virtualBox redhat 共享文件夹 安装增强功能
    ant 内存空间不足
    Linux (ubuntu和redhat) 常用命令及细节
  • 原文地址:https://www.cnblogs.com/cugwx/p/3590517.html
Copyright © 2011-2022 走看看