设计师给的图是1080*960,按这个尺寸用px写出了网页,现在要把这个放入手机app中,是横屏的,怎么可以保证在手机上自适应,就用px写的,没有用%和rem
ringa_lee2017-04-17 15:08:48
Cooperate with media queries to change the size of the layout box and use CSS3 background-size to scale the background image
迷茫2017-04-17 15:08:48
If you have to put it on your mobile phone, use media-query to adjust it slowly
ringa_lee2017-04-17 15:08:48
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
ringa_lee2017-04-17 15:08:48
Completely automatic is not feasible.
However, you can refer to the following plan.
Use Flexible to realize terminal adaptation of H5 mobile Taobao page