顶部悬浮

This commit is contained in:
禺狨 2023-03-10 10:15:08 +08:00
parent f50b899fd3
commit a2ee242898
2 changed files with 13 additions and 3 deletions

View File

@ -93,7 +93,14 @@ export const LeftMenu: React.FC = () => {
return (
<div className={styles["left-menu"]}>
<div
style={{ textDecoration: "none", cursor: "pointer" }}
style={{
textDecoration: "none",
cursor: "pointer",
position: "sticky",
top: 0,
zIndex: 10,
background: "#fff",
}}
onClick={() => {
window.location.href = "/";
}}

View File

@ -14,6 +14,9 @@
.right-top {
width: 100%;
height: 48px;
position: sticky;
top: 0;
z-index: 10;
}
.right-main {
width: 100%;