5); } .menu-item:hover { cursor: pointer; background-color: rgb(224, 224, 224); } .menu-first-items { height: 0; overflow: hidden; transition: height 0.3s ease-out; /* 从上到下展开 */ } .open-close-circle { position: fixed; bottom: 20px; right: 20px; width: 50px; height: 50px; background-color: red; color: white; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 1rem; font-weight: bolder; cursor: pointer; z-index: 10000; transition: transform 0.2s linear 0.1s; } .open-close-circle:hover { background-color: rgb(200, 0, 0); }
菜单