Coder Social home page Coder Social logo

手机适应性问题。 about ice HOT 4 CLOSED

alibaba avatar alibaba commented on May 3, 2024
手机适应性问题。

from ice.

Comments (4)

yuanyan avatar yuanyan commented on May 3, 2024

模版里默认暂时需要加viewport meta适配移动端

from ice.

wssgcg1213 avatar wssgcg1213 commented on May 3, 2024

今天跟 @chenbin92 讨论了, 整体上移动端适配分两步走

  1. 不乱
  2. 响应式

做到第一步只需在 Layout 和 html(meta) 上做处理即可, 第二步需要将所有 block 进行栅格化改造

第一步方案如下:

  • 增加 viewport width=device-width
  • header, footer 部分固定的 width: 1200px 改写成 width: 100%; max-width: 1200px;

手机效果如下

image

from ice.

wssgcg1213 avatar wssgcg1213 commented on May 3, 2024

已有的项目麻烦 @xb215624874 按照上边的方法操作一下, 脚手架模板我们已经修改掉了, 新创建的会解决

from ice.

xb215624874 avatar xb215624874 commented on May 3, 2024

3Q

from ice.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.