zoukankan      html  css  js  c++  java
  • DIV+CSS布局

    近来在研究一下DIV+CSS

    源网文章地址:http://www.wzsky.net/html/Website/CSS/39193.html

    以下是我写的,一般网上都是分:头部,内容,顶部.

    再细分就是内容部分进行切分左右,或左中左

    代码
    <html xmlns="http://www.w3.org/1999/xhtml">

    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>无标题 1</title>
    <style>
    body{
        font:12px Tahoma;margin:0px;text
    -align:center;background-color:#fff;
    }
    #container{
     
    100%;
        
    }

    #header{
         800px;margin:
    0 auto;height:80px;border:thin;}
         
         #mainbody{
        800px;margin:
    0 auto;height:400px;border:thin;

    }

    #sidebar{
        160px;height:300px;text
    -align:left;float:left;clear:left; overflow:hidden;
    }
    #mainbar{
        640px; height:300px; text
    -align:left;float:right;clear:right;overflow:hidden;
    }
    #footer{
         800px;height:300px; margin: 
    0 auto;height:50px; border:thin;
    }

    .a0{

     color:black;
    }
    .a1:hover{
         color:red;
    }
    </style>
    </head>

    <body>

    <div  id="container">

    <div id="header"></div>


    <div id="mainbody">
    <div id="sidebar"></div>
    <div id="mainbar">
    <a href="#" class="a0 a1">hello</a>
    </div>
    </div>
    <div id="footer"></div>


    </div>



    </body>

    </html>

    还要继续学习研究

    -------长沙程序员技术交流QQ群:428755207-------
  • 相关阅读:
    四则运算网页版
    第六周工作日志
    课堂作业数组最大和
    第五周总结
    四则运算三结对开发
    学习进度第四周
    个人模块记录表
    学习进度表第三周
    四则运算第二篇
    保序回归问题
  • 原文地址:https://www.cnblogs.com/qq4004229/p/1785140.html
Copyright © 2011-2022 走看看