Skip to content
This repository has been archived by the owner on Aug 30, 2024. It is now read-only.

生产环境和开发环境的样式表现不一致 #2

Open
donley828 opened this issue May 11, 2021 · 2 comments
Open

生产环境和开发环境的样式表现不一致 #2

donley828 opened this issue May 11, 2021 · 2 comments

Comments

@donley828
Copy link

Menu 组件

image
在鼠标悬浮之后border-bottom 会被放出来
image
.ant-menu 的 [data-theme="dark"] .ant-menu-horizontal 里的border-bottom 会被覆盖
image
但是生产环境的表现刚好相反

@anncwb
Copy link
Collaborator

anncwb commented May 26, 2021

这个可能跟按需引入有关,可以给一个复现?

@Jenniferyingni
Copy link

@donley828 看一下是不是和这个 issues 同一个原因导致的 #7
因为暗黑模式的 css 文件默认插入到了 html 的 <!DOCTYPE html> 之前,导致生产态下忽略了这个 DOCTYPE , 导致的样式不一致问题

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

No branches or pull requests

3 participants