GithubHelp home page GithubHelp logo

目前成熟方案:flexible about rem HOT 2 OPEN

hbxeagle avatar hbxeagle commented on September 17, 2024
目前成熟方案:flexible

from rem.

Comments (2)

CFM880 avatar CFM880 commented on September 17, 2024

设置高度感觉不好弄,flex和这个配合使用应该可以解决吧,才入坑前端两周,有理解错的地方,求指点

from rem.

hbxeagle avatar hbxeagle commented on September 17, 2024

写这篇主要是针对rem在计算中出现的问题,毕竟flexible也需要rem的配合。flex确实很好使,但在一些Android手机上有些属性比较坑。针对dpr大于1的情况是需要特殊处理,比如1px边框问题,是要判断dpr后加单独的样式做适配。
另外,CFM880提到的高度的问题,我猜测是在遇到全屏设计页面时觉得不好弄吧。本人的一点经验,在切图的时候,从模块、模块包围结构、左右相对位置、前景、后景和设计意图等综合考虑,使用不同的方案。希望有帮助。

from rem.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.