• 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;
    }
  • 相关阅读:
    Resource interpreted as Stylesheet but transferred with MIME type application/x-css
    scrapy 的settings.py中设置自定义属性
    scrapy下载图片到指定路径
    scrapy 自动下载图片
    Python处理json的错误 obj, end = self.scan_once(s, idx) ValueError: Expecting property name: line 2 column 17 (char 18)
    [ZJOI2012]数列 题解 [高精]
    [ZJOI2020]传统艺能 题解 [DP+矩阵+分类讨论]
    《终将成为你》简评
    GJGHFD的关键点 题解 [倍增+线段树+贪心]
    GJGHFD的排列 题解 [DP]
  • 原文地址:https://www.cnblogs.com/Model-Zachary/p/6144884.html
Copyright © 2020-2023  润新知