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

一次部署转换多端 #178

Open
keypadDancer opened this issue May 15, 2024 · 1 comment
Open

一次部署转换多端 #178

keypadDancer opened this issue May 15, 2024 · 1 comment

Comments

@keypadDancer
Copy link

首先我只打一次包
只部署一次

然后这个时候我需要同时适配
pc和手机如果pad端有问题可能也会适配pad

采用vw、vh+媒体查询的方案

这个时候是有两个设计稿的
1920x1080 和 750x812,可能还会有个pad的
假设我的屏幕断点是 1280 和 768

我肯定在不同的媒体查询里面宽度不一致
一般可能我直接通过1280就区分了pc和移动
如果pad有问题可能会细分
1280 768

这样我的媒体查询对应的设计稿宽度肯定是不一样的

这个时候插件能不能做到根据不同媒体查询设置设计稿的宽度然后吧px转成vw

@kirklin
Copy link

kirklin commented Jul 2, 2024

LINK: kirklin/postcss-px-conversion#2

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

2 participants