Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

可以增加一个最大宽度或者最小宽度吗,当屏幕大于最大或者小于最小以后就不在转换吗 #166

Open
BeiJiu123 opened this issue Oct 10, 2023 · 3 comments

Comments

@BeiJiu123
Copy link

BeiJiu123 commented Oct 10, 2023

No description provided.

@BeiJiu123 BeiJiu123 changed the title 媒体查询设置了最大宽度后最小宽度后就不生效了 可以增加一个最大宽度或者最小宽度吗,当屏幕大于最大或者小于最小以后就不在转换吗 Oct 11, 2023
@wswmsword
Copy link

试一下 postcss-mobile-forever

@woshiqiji
Copy link

试一下 postcss-mobile-forever

这个可以和 postcss-px-to-viewport 一块用吗?我一起用报这个错: Syntax Error: Error: PostCSS plugin postcss-mobile-forever requires PostCSS 8.

@wswmsword
Copy link

wswmsword commented Oct 17, 2024

@woshiqiji 要先升级一下 PostCSS,报错是说你项目里的 PostCSS 是老版本的,如果没办法升级 PostCSS,就试一下兼容版本的 postcss-mobile-forever 吧:

npm install postcss-mobile-forever@legacy --save-dev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants