zoukankan      html  css  js  c++  java
  • Pc端css初始化

    @charset "UTF-8";
    /**css初始化**/
    body, h1, h2, h3, h4, h5, h6, hr, p, blockquote, dl, dt, dd, ul, ol, li, pre, form, fieldset, legend, button, input, textarea, th, td,menu,nav,header{ margin:0; padding:0; }
    table { border-collapse:collapse; border-spacing:0; } 
    h1, h2, h3, h4, h5, h6{ font-size:12px; font-weight:normal;}
    ul,ol{list-style: none;}
    img{display: block; border:0 none;}
    input {  font-family: "SimSun","宋体"; border:0 none; outline-style:none;}
    textarea { resize:none; } 
    .clearfix::after{content:''; height:0; line-height:0; visibility:hidden; display:block; clear:both;}
    .clearfix{zoom:1;} /*针对ie低级版本的浏览器*/
    body {font-size:12px;font-family: "San Francisco", "Helvetica Neue", "PingHei", "Hiragino Sans GB","Microsoft Yahei","Arial Unicode MS", "Arial", "Verdana", "SimHei","Geneva","sans-serif";} /*正文的字体大小和颜色*/

     或者百度搜索reset.css 就可以拷贝如下代码作为初始化的css了

    /* http://meyerweb.com/eric/tools/css/reset/ 
       v2.0 | 20110126
       License: none (public domain)
    */
    
    html, body, div, span, applet, object, iframe,
    h1, h2, h3, h4, h5, h6, p, blockquote, pre,
    a, abbr, acronym, address, big, cite, code,
    del, dfn, em, img, ins, kbd, q, s, samp,
    small, strike, strong, sub, sup, tt, var,
    b, u, i, center,
    dl, dt, dd, ol, ul, li,
    fieldset, form, label, legend,
    table, caption, tbody, tfoot, thead, tr, th, td,
    article, aside, canvas, details, embed, 
    figure, figcaption, footer, header, hgroup, 
    menu, nav, output, ruby, section, summary,
    time, mark, audio, video {
        margin: 0;
        padding: 0;
        border: 0;
        font-size: 100%;
        font: inherit;
        vertical-align: baseline;
    }
    /* HTML5 display-role reset for older browsers */
    article, aside, details, figcaption, figure, 
    footer, header, hgroup, menu, nav, section {
        display: block;
    }
    body {
        line-height: 1;
    }
    ol, ul {
        list-style: none;
    }
    blockquote, q {
        quotes: none;
    }
    blockquote:before, blockquote:after,
    q:before, q:after {
        content: '';
        content: none;
    }
    table {
        border-collapse: collapse;
        border-spacing: 0;
    }
  • 相关阅读:
    druid去掉广告
    nested exception is java.lang.NoClassDefFoundError: org/aspectj/util/Partial
    org.mybatis.spring.transaction.SpringManagedTransaction.getTimeout()Ljava/lang/Integer;
    @Transactional没起作用ssm框架
    Mac下Vim编辑快捷键小结(移动光标)
    埋点
    mysql 删除以某字符串开头的表
    idea去掉无效引用
    一个有用的正则表达式
    系统集成思维导图
  • 原文地址:https://www.cnblogs.com/Model-Zachary/p/6144884.html
Copyright © 2011-2022 走看看