zoukankan      html  css  js  c++  java
  • yahoo CSS reset

    html{
        color:#000;
        background:#FFF
    }
    body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,
    code,form,fieldset,legend,input,textarea,p,blockquote,th,td{
        margin:0;
        padding:0
    }
    table{
        border-collapse:collapse;
        border-spacing:0
    }
    fieldset,img{
        border:0
    }
    address,caption,cite,code,dfn,em,strong,th,var{
        font-style:normal;
        font-weight:normal
    }
    li{
        list-style:none
    }
    caption,th{
        text-align:left
    }
    h1,h2,h3,h4,h5,h6{
        font-size:100%;
        font-weight:normal
    }
    q:before,q:after{
        content:''
    }
    abbr,acronym{
        border:0;
        font-variant:normal;/*small-caps 小型的大写字母体*/
    }
    /*上标*/
    sup{
        vertical-align:text-top;/*把元素的顶端与父元素字体的顶端对齐*/
    }
    /*下标*/
    sub{
        vertical-align:text-bottom;/*把元素的顶端与父元素字体的底端对齐*/
    }
    /*在浏览器中input,textarea(文本框),select(多选元素)中的字体都会比父元素的小。*/
    input,textarea,select{
        font-family:inherit;/*从父元素继承字体*/
        font-size:inherit;/*从父元素继承字体*/
        font-weight:inherit;/*从父元素继承字体*/
    }
    /*处理IE6/7的情况*/
    input,textarea,select{
        *font-size:100%
    }
    /*legend不会继承field的color属性;所以要单独设legend的文字颜色。*/
    legend{
        color:#000
    }
    body{
        /*字号13像素,行高为1.231倍*/
        font:13px/1.231 arial,helvetica,clean,sans-serif;
        *font-size:small;/*IE6跟7*/
        *font:x-small;/*IE怪异模式*/
    }
    select,input,button,textarea{
        font:99% arial,helvetica,clean,sans-serif
    }
    table{
        font-size:inherit;
        font:100%
    }
    pre,code,kbd,samp,tt{
        font-family:monospace;
        *font-size:108%;
        line-height:100%
    }
    .clear{
        zoom:1;
    }
    .clear:after{
        content:"";
        height:0;
        visibility:hidden;
        display:block;
        clear:both;
    }
    版权

    作者:Artwl

    出处:http://artwl.cnblogs.com

    本文首发博客园,版权归作者跟博客园共有。转载必须保留本段声明,并在页面显著位置给出本文链接,否则保留追究法律责任的权利。

  • 相关阅读:
    《舌尖上的中国》精彩故事
    5年前的笔试题目
    遍历物理模型中的所有表,将表名、表代码、字段名、字段代码全部由小写改成大写
    MongoDB下载文件 百度盘共享
    认识MEAN开发框架[转]
    智能油田
    排课相关参数设置
    spring获取所有被装配类工具
    oracle常用sql集锦
    关于使用easyUI遇到过的一些坑
  • 原文地址:https://www.cnblogs.com/artwl/p/2935371.html
Copyright © 2011-2022 走看看