zoukankan      html  css  js  c++  java
  • 移动端的样式重置(CSS RESET)

    /**********
     * reset
     *********/
    * {box-sizing: border-box; -webkit-tap-highlight-color: rgba(0,0,0,0);}
    body,
    dl, dt, dd, ul, ol, li,
    h1, h2, h3, h4, h5, h6,
    pre, code, form, fieldset, legend, input, textarea,
    p, blockquote, th, td, hr, button,
    article, aside, details, figcaption, figure, footer, header, menu, nav, section {
      margin: 0;
      padding: 0;
      border: 0;
    }
    /* 默认不要下划线 */
    a {text-decoration: none;}
    /* 按钮文本不可选 */
    button {user-select: none;}
    img {vertical-align: middle;}
    /* 加载不出来的图片不要显示灰色边框 */
    img:not([src]),img[src=""] {opacity: 0;}
    ul, ol {list-style: none;}
    table {border-collapse: collapse; border-spacing: 0;}
    input, select, button, textarea {font-size: 100%; font: inherit;}
    html, body {height: 100%; overflow-x: hidden;}
  • 相关阅读:
    02.替换空格 (Java)
    01.二维数组中的查找 (Java)
    css
    CSS Selectors
    Golang Singleton
    TL;DR
    go get
    golang string、int、int64 float 互相转换
    Thrift支持的基本数据类型
    双亲委派模型
  • 原文地址:https://www.cnblogs.com/jiahuasir/p/11690216.html
Copyright © 2011-2022 走看看