Home  >  Q&A  >  body text

css - 如何把用px写的pc端网页放入手机端自动适配

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

PHP中文网PHP中文网2742 days ago974

reply all(5)I'll reply

  • PHPz

    PHPz2017-04-17 15:08:48

    Use media queries and adjust slowly.

    reply
    0
  • ringa_lee

    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

    reply
    0
  • 迷茫

    迷茫2017-04-17 15:08:48

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

    reply
    0
  • ringa_lee

    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

    reply
    0
  • ringa_lee

    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

    reply
    0
  • Cancelreply