zoukankan      html  css  js  c++  java
  • h5固定表头公共样式

        <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
        <meta content="yes" name="apple-mobile-web-app-capable">
        <meta content="yes" name="apple-touch-fullscreen">
        <meta content="telephone=no,email=no" name="format-detection">
        <meta name="App-Config" content="fullscreen=yes,useHistoryState=yes,transition=yes">

    css

    html {
        font-family: sans-serif;
        -ms-text-size-adjust: 100%;
        -webkit-text-size-adjust: 100%;
        overflow-y: scroll;
        /*-webkit-overflow-scrolling: touch;*/
    }

    body {
        margin: 0;
        font-size: 14px;
        line-height: 1.3;
        color: #333;
        background-color: #fff;
    }

    article,aside,details,figcaption,figure,footer,header,hgroup,main,nav,section,summary {
        display: block
    }

    audio,canvas,progress,video {
        display: inline-block;
        vertical-align: baseline;
        *display: inline;
        *zoom: 1
    }

    audio:not([controls]) {
        display: none;
        height: 0
    }[hidden],template {
        display: none
    }

    a {
        background: transparent;
        text-decoration: none;
        color: #08c
    }

    a:active,a:hover {
        outline: 0
    }

    a:hover {
        color: #069
    }

    abbr[title] {
        border-bottom: 1px dotted
    }

    b,strong {
        font-weight: bold
    }

    dfn {
        font-style: italic
    }

    mark {
        background: #ff0;
        color: #000
    }

    small {
        font-size: 80%
    }

    sub,sup {
        font-size: 75%;
        line-height: 0;
        position: relative;
        vertical-align: baseline
    }

    sup {
        top: -0.5em
    }

    sub {
        bottom: -0.25em
    }

    img {
        border: 0;
        /*vertical-align: middle;*/
        -ms-interpolation-mode: bicubic
    }

    svg:not(:root) {
        overflow: hidden
    }

    hr {
        -moz-box-sizing: content-box;
        box-sizing: content-box;
        height: 0
    }

    pre {
        overflow: auto;
        white-space: pre;
        white-space: pre-wrap;
        word-wrap: break-word
    }

    code,kbd,pre,samp {
        font-family: monospace, monospace;
        _font-family: 'courier new', monospace;
        font-size: 1em
    }

    button,input,optgroup,select,textarea {
        color: inherit;
        font: inherit;
        margin: 0
    }

    button {
        overflow: visible
    }

    button,select {
        text-transform: none
    }

    button,html input[type="button"],input[type="reset"],input[type="submit"] {
        -webkit-appearance: button;
        cursor: pointer;
        *overflow: visible
    }

    button[disabled],html input[disabled] {
        cursor: default
    }

    button::-moz-focus-inner,input::-moz-focus-inner {
        border: 0;
        padding: 0
    }

    input {
        line-height: normal
    }

    input[type="checkbox"],input[type="radio"] {
        box-sizing: border-box;
        padding: 0;
        *height: 13px;
        * 13px
    }

    input[type="number"]::-webkit-inner-spin-button,input[type="number"]::-webkit-outer-spin-button {
        height: auto
    }

    input[type="search"] {
        -webkit-appearance: textfield;
        -moz-box-sizing: content-box;
        -webkit-box-sizing: content-box;
        box-sizing: content-box
    }

    input[type="search"]::-webkit-search-cancel-button,input[type="search"]::-webkit-search-decoration {
        -webkit-appearance: none
    }

    fieldset {
        border: 1px solid #c0c0c0;
        margin: 0 2px;
        padding: 0.35em 0.625em 0.75em
    }

    legend {
        border: 0;
        padding: 0;
        *margin-left: -7px
    }

    textarea {
        overflow: auto;
        resize: vertical
    }

    optgroup {
        font-weight: bold
    }

    table {
        border-collapse: collapse;
        border-spacing: 0
    }

    td,th {
        padding: 0
    }

    q {
        quotes: none
    }

    html,button,input,select,textarea {
        font-family: "Helvetica Neue",Helvetica,Tahoma,sans-serif
    }

    h1,h2,h3,h4,h5,h6,p,figure,form,blockquote {
        margin: 0
    }

    ul,ol,li,dl,dd {
        margin: 0;
        padding: 0
    }

    ul,ol {
        list-style: none outside none
    }

    h1,h2,h3 {
        line-height: 2;
        font-weight: normal
    }

    h1 {
        font-size: 21px
    }

    h2 {
        font-size: 18.2px
    }

    h3 {
        font-size: 16.38px
    }

    h4 {
        font-size: 14px
    }

    h5,h6 {
        font-size: 11.9px;
        text-transform: uppercase
    }

    input:-moz-placeholder,textarea:-moz-placeholder {
        color: #ccc
    }

    input::-moz-placeholder,textarea::-moz-placeholder {
        color: #ccc
    }

    input:-ms-input-placeholder,textarea:-ms-input-placeholder {
        color: #ccc
    }

    input::-webkit-input-placeholder,textarea::-webkit-input-placeholder {
        color: #ccc
    }
    /*# sourceMappingURL=reset.css.map */

    /*font by yuncanqin 20151127*/
    @media screen and ( min- 319px){html{ font-size: 100px;}}
    @media screen and ( min- 359px){html{ font-size: 106px;}}
    @media screen and ( min- 383px){html{ font-size: 112px;}}
    @media screen and ( min- 399px){html{ font-size: 118px;}}
    @media screen and ( min- 414px){html{ font-size: 120px;}}
    @media screen and ( min- 423px){html{ font-size: 130px;}}
    @media screen and ( min- 479px){html{ font-size: 140px;}}
    body{ font-family: Microsoft YaHei,STXihei,sans-serif; font-size: 14px}
    p{margin: 0}
    *{ box-sizing: border-box;-webkit-tap-highlight-color:rgba(255,0,0,0);margin: 0;padding: 0}
    :focus{outline:none;}
    input,a,img{border:0;}
    input[type=text],input[type=checkbox],input[type=button],input[type=date]{-webkit-appearance: none;}
    input,button{ outline:none;-webkit-tap-highlight-color: rgba(0,0,0,0); -webkit-tap-highlight-color: transparent;}
    html, body { 100%; min- 320px; max- 640px;margin: 0px auto; font-family: "Microsoft YaHei"; color: #333;background: #f0eff5;}
    a{blr:expression(this.onFocus=this.blur())}

  • 相关阅读:
    微信公众平台—— 获取微信服务器IP地址
    微信公众平台——获取access_token、expires_in
    PHP版本切换
    开源各种系统
    VUE -- 如何快速的写出一个Vue的icon组件?
    Mac下php 5升级到php 7的步骤详解
    Nginx反向代理导致PHP获取不到正确的HTTP_HOST,SERVER_NAME,客户端IP的解决方法
    nginx服务器URL无法自动添加index.php
    php类库安装xml simplexml
    Mac DBeaver Client home is not specified for connection解决办法
  • 原文地址:https://www.cnblogs.com/zhouyx/p/5175823.html
Copyright © 2011-2022 走看看