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())}

  • 相关阅读:
    如何使用lr监视服务器linux的方法
    wc的使用
    mrtg 的配置和使用(从网上搜集的资料,自己整理过的)
    单元测试(从网上搜集的资料,自己总结整理过的)
    StatsD学习
    NodeJs NTLM认证(烂尾)
    用issnode+IIS来托管NodeJs Server之一:安装篇
    jQuery设置光标停留位置在文本最后(或在具体的位置)的办法
    Redis 相关资源
    纯CSS美化HTML的Table
  • 原文地址:https://www.cnblogs.com/zhouyx/p/5175823.html
Copyright © 2011-2022 走看看