Comments (5)
最新版本 4.0.1 已添加新属性 experimental.minDisplayWidth
来限制最小宽度,可以像下面这样配置:
{
"appSelector": "#app",
"maxDisplayWidth": 1440,
"experimental": {
"minDisplayWidth": 980
}
}
from postcss-mobile-forever.
哈哈好的,还有问题的话欢迎提出来。
from postcss-mobile-forever.
现在还不支持这个功能,只能大于某个宽度不缩放。请问您是在什么场景希望小于某宽度不缩放?
from postcss-mobile-forever.
项目是web端的,然后引入了一个postcss做适配,放大缩小。但是到小于980的时候页面会乱掉 所以我希望是980以下都不再缩放。按理说应该和大于某个宽度不再放大是一个原理
from postcss-mobile-forever.
完美解决了,比之前的postcss-px-to-viewport适配更好了,我实现了1600不放大,980以下不缩小,目前还有点微调问题,不过影响不大。减少了两套代码的工作量,nice。作者大大加鸡腿
from postcss-mobile-forever.
Related Issues (20)
- angular 里面可以使用吗? HOT 1
- 设置了maxDisplayWidth 之后,对于 width 设置为 100% 的元素,也会被重置为 min(100%, 500px),但是我希望忽略设置为 100% 的元素 HOT 14
- 有个nuxt3官网项目,准备同时适配PC和移动端,有插件相关demo参考下吗 HOT 2
- 配置include和exclude不生效 HOT 11
- bug: css 变量默认值不转换 HOT 1
- 可以增加一个最小宽度的限制么,目前我的需求是pc端适配,移动端不适配 HOT 1
- About Nuxt DevTools Width Display HOT 4
- 设置了之后移动端和pc端是不是都会限制最大宽度 HOT 13
- postcss-mobile-forever版本4.1.2在 Vue3 vite5 配置不生效 HOT 4
- 媒体查询中的 vw 转换 HOT 10
- Vant4项目使用之后popup的mask半透明黑色背景不会宽度100%了 HOT 2
- 在webcompent组件中不生效,已禁用shadow HOT 6
- 设置 include unocss 无法转换 HOT 9
- uni-app使用 HOT 3
- 如何让maxDisplayWidth只针对某个class或者某个页面,而不是一设置上来就是限制全局 HOT 13
- `border` 属性的实现,用 `box-shadow` 去模拟是否会更合适 HOT 2
- 设置桌面端最大宽度 HOT 2
- 能否支持在转换成vw时,让某些竖直方向的属性,比如height,使用vh HOT 5
- 当我设置了background-attachment: fixd, 背景图片显示效果不对,应该如何调整 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from postcss-mobile-forever.