/* CSS Document */  
    /* 
       对于CSS来说  每一个元素默认的margin和padding就是0px。但是不同的浏览器会有一个默认的浏览器样式修改默认的margin padding。所以在使用自定义样式编程前加上  *{ }重新设置margin和padding为0px,覆盖浏览器样式使得各个浏览器下统一。 
    */  
    *{  
        margin:0px;  
        padding:0px;  
        font-weight: bold;  
    }  
    /*a {*/  
        /*color:black;*/  
        /*text-decoration: none;*/  
    /*}*/  
      
    a:link,  
    a:visited     {  
        color:#FF0000;  
        text-decoration:underline;  
    }  
    a:hover,  
    a:active    {  
        color: #5cffeb;  
        text-decoration:none;  
    }  
    /* 
       ID选择器   以#开始  用来匹配元素的id值 
    */  
    #header{  
        height:160px;  
        background-color:#0033FF;  
        position:relative;  
    }  
      
    /*后代选择器  在多个选择器之间加入空格表示后代选择器 用来匹配元素的包含关系 
       标签选择器  直接使用标签本身来匹配元素 
    */  
      
    #header h1{  
        color:#FFFF00;  
        font-size:48px;  
        padding-top:40px;  
        width:300px;/*  通过设置margin的左右为auto可以实现居中,前提是被居中元素指定宽度*/  
        margin:0px auto;  
    }  
      
    /*   #header  a:first-child   #header 里面所有是一个子元素的链接 
     
       #header > a:first-child  #header的直接子元素中的第一个a 
     
    */  
      
    #header > a:first-child{  
        /*float:right;*/  
      
        position:absolute;  
        right:15px;  
        top:10px;  
    }  
    /* 
       所有元素默认的postion是static,其特点按照在文档中的先后顺序进行排列 
       position:absolute  绝对布局,其特点相对于最近一个已定位(absolute/relative )父元素进行定位,如果没有这样的父元素就相对于body。通过top bottom left right控制 
       position:relative  相对布局  其特点是相对于元素本来的位置进行位移  。通过top bottom left right控制,如果吗,没有位移量,其显示还是在原来的位置,但是性质已经变成定位元素。 
    */  
      
      
      
    #header .menu{  
        position:absolute;  
        bottom:5px;  
    }  
      
    #header .menu li{  
        float: left;  
        margin-left:15px;  
        list-style-type:none  
    }  
    #main{  
        min-height:500px;  
        background-color:#CCCCCC;  
    }  
      
      
      
    #main table ,#main h4{  
        width:360px;  
        margin:0px auto;  
    }  
      
    .minWidth{  
        min-width:240px;  
    }  
      
    #main table{  
        padding-top:60px;  
    }  
    #main table .result{  
        background-color: white;  
        text-align: center;  
    }  
    #main input,#main img[src='CheckCode']{  
        width:150px;  
        height:24px;  
    }  
      
    #main textarea{  
        width: 150px;  
        height: 96px;  
    }  
    /* 
       每个id选择器算100 类 伪类算10  标签选择器算1  将所有的值相加就是优先级 
    */  
    #main tr:last-child input{  
        width:auto;  
        padding:0 10px;  
    }  
      
      
    #footer{  
        background-color:#0033FF;  
        height:80px;  
    }

最新文章

  1. [leetcode]Path Sum II
  2. 汇编中call printf参数压栈时错误理解
  3. js 时间函数 及相关运算大全
  4. listview及adapter
  5. zstu 4214 高楼扔鸡蛋(google 面试题)dp
  6. applicationContext.xml的配置
  7. twisted学习之reactor
  8. windows安装程序无法将windows配置为在此计算机的硬件上运行
  9. DotNetCore跨平台~为Lind.DotNetCore框架添加单元测试的意义
  10. 【JSP/Servlet】后台如何获取复选框或可选属性的同名参数
  11. WPF TextBlock 判断 isTextTrimmed 文本是否超出
  12. 查询当前局域网下所有IP和物理网卡地址
  13. C Looooops POJ - 2115 (exgcd)
  14. 干货—MySQL常见的面试题+索引原理分析!
  15. pc-H5 适配方案
  16. CF 554A 字符串水题
  17. C++析构函数的自动调用(用于父类指针指向子类对象,内存泄漏问题)
  18. python日记---day1
  19. ASP .Net Core系统部署到 CentOS7 64 具体方案
  20. SimpleDateFormat转换时间,12,24时间格式

热门文章

  1. ServletConfig接口
  2. scala实战学习-快速排序
  3. python学习之路(14)
  4. 拉格朗日插值法板子(dls)
  5. 通过Flink实现个推海量消息数据的实时统计
  6. 揭秘Android Studio项目目录结构
  7. C++入门经典-例2.5-使用附加格式说明scanf函数的格式输入
  8. webshell 常见 Bypass waf 技巧总结
  9. 什么是IntentService?有何优点?
  10. Selenium 2自动化测试实战15(多表单切换)