zoukankan      html  css  js  c++  java
  • CSS----媒体查询设置根节点字体大小

    <html>
    
    <head>
        <title>CSS----媒体查询设置根节点字体大小</title>
        <meta name="keyword" content="CSS----媒体查询设置根节点字体大小">
        <meta name='discription' content="CSS----媒体查询设置根节点字体大小">
        <style>
        /* 字体大小 */
    
        @media only screen and (min-320px) and (orientation:portrait) {
            html {
                font-size: 12px;
            }
        }
    
        @media only screen and (min-360px) and (orientation:portrait) {
            html {
                font-size: 15px;
            }
        }
    
        @media only screen and (min-400px) and (orientation:portrait) {
            html {
                font-size: 18px;
            }
        }
    
        @media only screen and (min-600px) and (orientation:portrait) {
            html {
                font-size: 24px;
            }
        }
    
        @media only screen and (max-768px) and (orientation:portrait) {}
    
        @media only screen and (min-480px) and (orientation:landscape) {
            html {
                font-size: 12px;
            }
        }
    
        @media only screen and (min-580px) and (orientation:landscape) {
            html {
                font-size: 13px;
            }
        }
    
        @media only screen and (min-730px) and (orientation:landscape) {
            html {
                font-size: 16px;
            }
        }
    
        @media only screen and (min-900px) and (orientation:landscape) {
            html {
                font-size: 21px;
            }
        }
    
        @media only screen and (min-992px) {
            html {
                font-size: 24px;
            }
        }
        </style>
    </head>
    
    <body>
    </body>
    
    </html>
    

      

  • 相关阅读:
    vue-cli与后台数据交互增删改查
    echart地图下钻
    Vue中data重置问题
    页面滚动tab监听
    less笔记
    bootstrap-table 行内编辑
    bootstrap-table固定表头固定列
    微信分享配置(js-sdk)
    npm查看全局安装过的包
    页面固定定位超出一屏
  • 原文地址:https://www.cnblogs.com/SunlikeLWL/p/8670558.html
Copyright © 2011-2022 走看看