css3 media

 @media screen and (max-width: 768px) {
        html {
          font-size: 30px !important;
        }
      }

      @media screen and (max-width: 420px) {
        html {
          font-size: 19px !important;
        }
      }

      @media screen and (max-width: 400px) {
        html {
          font-size: 18px !important;
        }
      }

      @media screen and (max-width: 320px) {
        html {
          font-size: 15px !important;
        }
      }

 

posted @ 2024-09-25 17:27  a瑶池  阅读(2)  评论(0编辑  收藏  举报