Giter Site home page Giter Site logo

Comments (5)

wswmsword avatar wswmsword commented on May 20, 2024 1

最新版本 4.0.1 已添加新属性 experimental.minDisplayWidth 来限制最小宽度,可以像下面这样配置:

{
  "appSelector": "#app",
  "maxDisplayWidth": 1440,
  "experimental": {
    "minDisplayWidth": 980
  }
}

from postcss-mobile-forever.

wswmsword avatar wswmsword commented on May 20, 2024 1

哈哈好的,还有问题的话欢迎提出来。

from postcss-mobile-forever.

wswmsword avatar wswmsword commented on May 20, 2024

现在还不支持这个功能,只能大于某个宽度不缩放。请问您是在什么场景希望小于某宽度不缩放?

from postcss-mobile-forever.

intelligenceFY avatar intelligenceFY commented on May 20, 2024

项目是web端的,然后引入了一个postcss做适配,放大缩小。但是到小于980的时候页面会乱掉 所以我希望是980以下都不再缩放。按理说应该和大于某个宽度不再放大是一个原理

from postcss-mobile-forever.

intelligenceFY avatar intelligenceFY commented on May 20, 2024

完美解决了,比之前的postcss-px-to-viewport适配更好了,我实现了1600不放大,980以下不缩小,目前还有点微调问题,不过影响不大。减少了两套代码的工作量,nice。作者大大加鸡腿

from postcss-mobile-forever.

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.