zoukankan      html  css  js  c++  java
  • 移动端适配 h5 c3

    html5+css3:

    *{
    margin:0;padding:0;outline:0
    }
    a{
    text-decoration:none
    }
    body,html{
    font-size:20px;font-family:'Microsoft YaHei,微软雅黑';height:100%;
    }
    -webkit-input-placeholder{
    color:#ccc
    }
    ::-moz-placeholder{
    color:#ccc
    }
    :-ms-input-placeholder{
    color:#ccc
    }
    input:-moz-placeholder{
    color:#ccc
    }
    html{
    font-size:20px;height:100%
    }
    @media only screen and (min-320px) and (min-height:480px){
    html{
    font-size:20px!important
    }
    }
    @media only screen and (min-320px) and (min-height:568px){
    html{
    font-size:20px!important
    }
    }
    @media only screen and (min-360px) and (min-height:640px){
    html{
    font-size:22.5px!important
    }
    }
    @media only screen and (min-375px) and (min-height:667px){
    html{
    font-size:23.5px!important
    }
    }
    @media only screen and (min-414px) and (min-height:736px){
    html{
    font-size:25.9px!important
    }
    }
    @media only screen and (min-736px){
    html{
    font-size:46px!important
    }
    }
    
  • 相关阅读:
    lnmp+memcache+tomcat
    redis的主从搭建
    curl只取状态码
    Tomcat的优化
    pip9 安装 centos6.8
    文件的下载
    保存图片到图库更新图库
    上传图片总结
    Android 大图片预览ViewPager
    Android 软件盘 Editext 问题
  • 原文地址:https://www.cnblogs.com/IT123/p/10881790.html
Copyright © 2011-2022 走看看