We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
问题描述 vue3 dev环境下uni-app内置组件自己的样式会覆盖掉app.vue内的全局样式,build打包后没问题。
复现步骤 https://stackblitz.com/~/github.com/321638914/uni3-css-test app.vue内添加image { width: 100%; height: 100% }全局样式,但页面上的image标签仍会显示为320px*240px。
image { width: 100%; height: 100% }
预期结果 内置组件样式会像vue2版那样正常被app.vue全局样式覆盖。
实际结果 app.vue内的image { width: 100%; height: 100% }被组件自带样式覆盖
系统信息:
补充信息 vitejs/vite#3924
The text was updated successfully, but these errors were encountered:
加下 !important
Sorry, something went wrong.
yurj26
No branches or pull requests
问题描述
vue3 dev环境下uni-app内置组件自己的样式会覆盖掉app.vue内的全局样式,build打包后没问题。
复现步骤
https://stackblitz.com/~/github.com/321638914/uni3-css-test
app.vue内添加
image { width: 100%; height: 100% }
全局样式,但页面上的image标签仍会显示为320px*240px。预期结果
内置组件样式会像vue2版那样正常被app.vue全局样式覆盖。
实际结果
app.vue内的
image { width: 100%; height: 100% }
被组件自带样式覆盖系统信息:
补充信息
vitejs/vite#3924
The text was updated successfully, but these errors were encountered: