![]() |
1
wildnode 2024-07-04 18:01:26 +08:00
TopNav 的 className 加个 `fixed`
|
2
deltaone OP --------------------------------------------
|. |. |. |. TopNav |. |------------------------------- |. | |. | |. | | SideBar | |. |. Main Page |. | |. | |. | |. | |. | |. | ---------------------------------------------- |
3
deltaone OP @wildnode 多谢回复。
TopNav 加 fixed 后,整体高度是不会多出 60px ,但 main page 顶上的 60px 顶到 TopNav 里了。 怎么能做到 main page 的高度刚好是 ( h-screen - 60px ) 呢。 |
![]() |
4
wildnode 2024-07-04 18:30:52 +08:00
.mainPage { height: calc(100vh - 60px); }
|
![]() |
5
madao199 2024-07-05 11:18:53 +08:00
浏览器样式清了没
|