Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
さまざまなネストされた順序付けられていないリストを含むナビゲーション バーがあります。私がする必要があるのは、各 UL の子をカウントし、カウントされた最大数を含む変数を設定することです。
for/while ループを使用してこれを行うことができると思いますが、どうすればよいか正確にはわかりません。
スクリプトは次のことを行います。
助けてくれてありがとう!