diff --git a/wiki/menu.html b/wiki/menu.html index 2d59179ae250fa4a6aa34383af1d469aa4943b0e..43c721197f695e29481f7edaf9145322dd2cee5b 100644 --- a/wiki/menu.html +++ b/wiki/menu.html @@ -108,18 +108,18 @@ } .hamburger { - display: block; /* æ˜¾ç¤ºæ±‰å ¡èœå• */ + display: block; } .my-navbar { flex-direction: column; align-items: flex-start; - display: none; /* 默认éšè—导航èœå• */ + display: none; width: 100%; } .my-navbar.show-menu { - display: flex; /* 显示导航èœå• */ + display: flex; } .my-navbar > li { @@ -134,7 +134,7 @@ .my-navbar > li > ul.son { position: static; - display: none; /* 默认éšè—åèœå• */ + display: none; width: 100%; opacity: 1; box-shadow: none; @@ -144,7 +144,7 @@ } .my-navbar > li.show > ul.son { - display: block; /* 显示åèœå• */ + display: block; } .son li a { @@ -248,13 +248,10 @@ } }); }); - - // 监å¬çª—å£å¤§å°å˜åŒ–,é‡ç½®å¯¼èˆªèœå•çŠ¶æ€ window.addEventListener('resize', function() { var navbar = document.getElementById('my-navbar'); if(window.innerWidth > 768){ navbar.classList.remove('show-menu'); - // 移除所有èœå•项的 'show' ç±» navItems.forEach(function(item){ item.classList.remove('show'); });