Fix: 修复 dvh 在低版本浏览器下不可用

This commit is contained in:
王立帮
2025-03-24 10:36:09 +08:00
parent 6876b95b82
commit d6a44af7fe

View File

@@ -4,12 +4,23 @@
overflow:hidden;
}
@supports (max-height: 1dvh) {
.footer-layer > .footer-layer-content {
max-height: calc(100dvh - var(--footer-height) - var(--nav-height) - 25px);
}
}
@supports not (max-height: 1dvh) {
.footer-layer > .footer-layer-content {
max-height: calc(100vh - var(--footer-height) - var(--nav-height) - 25px);
}
}
.footer-layer > .footer-layer-content {
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
max-height: calc(100dvh - var(--footer-height) - var(--nav-height) - 25px);
}
.footer-layer > .footer-layer-content > .layui-layer-title {