zoukankan      html  css  js  c++  java
  • CSS0013: CSS 通用样式

    1,

    /* 通用样式 */
    
    *,::after,::before {
        margin: 0;
        padding: 0;
        -webkit-tap-highlight-color: transparent;
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
        box-sizing: border-box
    }
    
    ::-webkit-scrollbar {
        width: 0;
        height: 0;
        background-color: #f5f5f5
    }
    
    html {
        width: 100%;
        min-height: 100%
    }
    
    body {
        height: 100%;
        font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
        color: #666;
        background-color: #fff
    }
    
    a {
        color: #333;
        text-decoration: none
    }
    
    a:hover {
        text-decoration: none
    }
    
    ol,ul {
        list-style: none
    }
    
    input {
        border: none;
        outline: 0;
        -webkit-appearance: none
    }
    
    button {
        border: none;
        outline: 0
    }
    
    .fl {
        float: left
    }
    
    .fr {
        float: right
    }
    
    .pr {
        position: relative
    }
    
    .pa {
        position: absolute
    }
    
    .pf {
        position: fixed
    }
    
    .db {
        display: block
    }
    
    .dlb {
        display: inline-block
    }
    
    .dl {
        display: inline
    }
    
    .dn {
        display: none
    }
    
    .t-center {
        text-align: center
    }
    
    .clearfix::after,.clearfix::before {
        content: "";
        height: 0;
        line-height: 0;
        display: block;
        visibility: hidden;
        clear: both
    }
    
    .v-center {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%,-50%);
        -ms-transform: translate(-50%,-50%);
        -moz-transform: translate(-50%,-50%);
        -webkit-transform: translate(-50%,-50%);
        -o-transform: translate(-50%,-50%)
    }
    
    .p-middle {
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        -ms-transform: translateY(-50%);
        -moz-transform: translateY(-50%);
        -webkit-transform: translateY(-50%);
        -o-transform: translateY(-50%)
    }
    
    .v-body {
        display: inline-block;
        vertical-align: middle
    }
    
    .hide {
        display: none
    }
    
    @media screen and (max-299px) {
        html {
            font-size: 70px
        }
    }
    
    @media screen and (min-300px) {
        html {
            font-size: 80px
        }
    }
    
    @media screen and (min-350px) {
        html {
            font-size: 90px
        }
    }
    
    @media screen and (min-370px) {
        html {
            font-size: 100px
        }
    }
    
    @media screen and (min-375px) {
        html {
            font-size: 26.66666667vw
        }
    }

    2,

    琥珀君的博客
  • 相关阅读:
    C++ 共用体
    C++ 作用域内枚举
    C++ 作用域为类的常量
    C++ 类作用域
    C++ 对象数组
    C++ this指针
    C++ const成员函数
    C++ 对象的初始化和赋值
    C++ 析构函数
    乌班图 之 apt命令 及 VMware共享文件夹
  • 原文地址:https://www.cnblogs.com/eliteboy/p/13538283.html
Copyright © 2011-2022 走看看