Fix: 修复 dvh 在低版本浏览器下不可用
This commit is contained in:
@@ -4,12 +4,23 @@
|
|||||||
overflow:hidden;
|
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 {
|
.footer-layer > .footer-layer-content {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
max-height: calc(100dvh - var(--footer-height) - var(--nav-height) - 25px);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.footer-layer > .footer-layer-content > .layui-layer-title {
|
.footer-layer > .footer-layer-content > .layui-layer-title {
|
||||||
|
|||||||
Reference in New Issue
Block a user