我有一个带有启动画面的 Angular 6 应用程序,我希望启动画面全高但我不知道哪里出了问题。这是今天的图片:
body,
html {
height: 100%;
}
.m-splash-screen {
background-color: #3c1977;
position: absolute;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100%;
width: 100%;
z-index: 99999;
}
</style>
这是我的 CSS,我必须做什么?
最佳答案
使用 position fixed,absolute 一开始会占据 100% 的高度,但是当你滚动时它不会覆盖整个屏幕。
关于html - 为什么我的启动画面没有全屏显示?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53923428/