Mobile high-definition adaptation, layout development solutions

Source: Internet
Author: User

Foreword: The adaptation of the mobile side is a big problem, especially Android, the domestic version is numerous, irregular DPR countless, in order to adapt to a variety of mobile terminals, NetEase, Baidu, Ali each of the major manufacturers have their own matching solutions. What problems do you want to solve?

    • A unified visual experience across devices.
    • No manual setup is required viewport , and the best fit is calculated based on the current environment viewport .
    • Support any size of the design, not limited to the specific size of the design drawings.
    • Support a single project, a variety of design drawings size, designed to solve large, long-cycle projects.
    • Support px2rem The conversion method, CSS layout, the original value is not lost.
    • Effectively solves the 1 pixel problem on the mobile side.

1, the flexible of Ali's adaptation program, Cool, beautiful, easy to use. Ali Wireless front-end team developed, hand-H5 page in use.

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

Flexible Explanation: HTTPS://GITHUB.COM/AMFE/ARTICLE/ISSUES/17

Flexible a case: http://huodong.m.taobao.com/act/yibo.html

2, ink dust greatly written hotcss, slightly lighter than flexible, the development of a weapon.

GitHub Portal: Https://github.com/imochen/hotcss

Hotcss a case: http://imochen.github.io/hotcss/example/normal/

3, plug-in Px2rem keep the source file px, convert px into REM

NPMJS Portal: Https://www.npmjs.com/package/px2rem

Use with Gulp: Gulp-px3rem Https://www.npmjs.com/package/gulp-px3rem

Use with Webpack: Px2rem-loader https://www.npmjs.com/package/px2rem-loader

Mobile high-definition adaptation, layout development solutions

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.