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

为什么直接下载你的代码在安卓端打开排版会乱 #19

Open
zhaoxiaohe123 opened this issue Oct 21, 2023 · 4 comments
Open

Comments

@zhaoxiaohe123
Copy link

No description provided.

@KSpider-Man
Copy link

postcss-mobile-forever 这个插件经过测试不支持安卓和钉钉内部浏览器 样式会乱掉

@wswmsword
Copy link
Contributor

@KSpider-Man 机型和浏览器版本是什么?像欧朋浏览器还有不支持 max CSS 函数的浏览器确实不支持,但都是极少部分了。

@KSpider-Man
Copy link

安卓小米华为在钉钉APP打开,会出现样式自适应混乱,猜测是钉钉内置浏览器内核版本过低不支持
把postcss.config.js文件插件引入改为const viewport = require('postcss-px-to-viewport-8-plugin')
vite.config.js 配置
plugins: [
createVitePlugins(viteEnv, isBuild, prodMock),
legacy({
targets: ['defaults', 'ie >= 11', 'chrome 52', 'Chrome 63'], //需要兼容的目标列表,可以设置多个
additionalLegacyPolyfills: ['regenerator-runtime/runtime'],
modernPolyfills: true,
}),
],
得到解决

@xiangshu233
Copy link
Owner

还是浏览器版本太低不支持这些新特性😄

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

4 participants