css - 如何把用px写的pc端网页放入手机端自动适配
PHP中文网
PHP中文网 2017-04-17 15:06:48
0
5
1008

设计师给的图是1080*960,按这个尺寸用px写出了网页,现在要把这个放入手机app中,是横屏的,怎么可以保证在手机上自适应,就用px写的,没有用%和rem

PHP中文网
PHP中文网

认证0级讲师

reply all(5)
PHPzhong

Use media queries and adjust slowly.

左手右手慢动作

Cooperate with media queries to change the size of the layout box and use CSS3 background-size to scale the background image

迷茫

If you have to put it on your mobile phone, use media-query to adjust it slowly

左手右手慢动作

Technology shouldn’t be stipulated, right?
This should be decided before development, right?
There is no conflict between px and %, rem units
Now we can only use media queries to slowly adjust them

左手右手慢动作

Completely automatic is not feasible.
However, you can refer to the following plan.
Use Flexible to realize terminal adaptation of H5 mobile Taobao page

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template