px转换rem插件 cssrem (vscode里)

https://github.com/amfe/lib-flexible

rem适配方案2(flexible.js)

rem适配方案2(flexible.js)

flexible默认是分成10份;所以1rem = 75px;

在pc端显示时,如果我们的屏幕超过了750px,就按照750设计稿走,不会让我们的页面超过750px

@media screen and (min-width: 750px) {
  html {
       font-size: 75px!important;        
    }  
}

 

相关文章:

  • 2022-12-23
  • 2022-02-11
  • 2022-12-23
  • 2023-01-07
  • 2022-12-23
  • 2021-09-28
  • 2021-07-23
  • 2022-12-23
猜你喜欢
  • 2022-02-09
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案