利用JavaScript實現下拉菜單

實現效果:點擊父級標題時下拉菜單會出現,同時其他已下拉的菜單會閉合。再次點擊當前打開的父級菜單時,閉合。 CSS: * { margin: 0; padding: 0; } li { list-style-type: none; } a { text-decoration: none; } #list { width: 300px; margin: 50px; font-wei
相關文章
相關標籤/搜索