search

Home  >  Q&A  >  body text

前端 - 关于页面响应式屏幕适配的问题。

我想问下你们平时都是如何做响应式的。
一个页面,内容量比较多。
要求适应PC和平板。

那么我是不是需要考虑
平板竖屏(768px) + 平板横屏(1024) + PC

这样的话得在原PC代码的基础上,
再另写两套,通过媒体查询。

这样代码量很大,都是这样写的还是我错了。

迷茫迷茫2799 days ago541

reply all(3)I'll reply

  • 天蓬老师

    天蓬老师2017-04-17 14:28:04

    You can use rem and js to dynamically change the root font-size. The best experience is to write more sets. Although you only write one set of code, the idea of ​​running it everywhere is beautiful

    reply
    0
  • ringa_lee

    ringa_lee2017-04-17 14:28:04

    If it’s responsive, you should use bootstrap

    reply
    0
  • 阿神

    阿神2017-04-17 14:28:04

    Responsiveness is originally written in two sets, it is just modularization and sharing part of the code between the two sets; don’t think that responsiveness is just one set of changes;

    reply
    0
  • Cancelreply