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

🐛 [BUG] global.less中 .ant-layout min-height:100vh 不生效,被内联样式覆盖 #10475

Closed
Hexi1997 opened this issue Jan 4, 2023 · 1 comment
Labels

Comments

@Hexi1997
Copy link
Contributor

Hexi1997 commented Jan 4, 2023

🐛 bug 描述

image

📷 复现步骤 | Recurrence steps

🏞 期望结果 | Expected results

💻 复现代码 | Recurrence code

© 版本信息

  • Ant Design Pro 版本: [e.g. 4.0.0]
  • umi 版本
  • 浏览器环境
  • 开发环境 [e.g. mac OS]

🚑 其他信息

@chenshuai2144
Copy link
Collaborator

TAutomatically replying with ChatGPT can be attempted, but it cannot be guaranteed to be completely accurate and may not fully address all issues. Please feel free to reply if you have any further questions or concerns.
此回复基于 ChatGPT 自动生成,可以尝试下方案,官方人员会在一定时间后继续继续处理。

你好,根据你提供的信息看起来是内联样式覆盖了全局样式导致的问题。你可以尝试使用样式优先级提高全局样式的权重,例如使用 !important。具体来说,在 global.less 中改为:

.ant-layout {
  min-height: 100vh !important;
}

如果这不起作用,你可以使用浏览器的开发者工具查看内联样式的来源,并尝试删除或改变该来源。

另外,对于 Ant Design Pro 的版本信息、开发环境等可以填写具体的信息,这有助于更好地理解和解决问题。如果你需要更多的帮助,可以参考 Ant Design Pro 的官方文档(https://pro.ant.design/docs/style-cn) 或相关的 Stack Overflow 问题。

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

Successfully merging a pull request may close this issue.

2 participants