誰能告訴我爲什麼我的下拉菜單無法正常工作?我覺得這是一個非常簡單的修復,但我無法弄清楚。jQuery的下拉菜單無法正常工作
HTML
<div id="Build" class="dropdown_head col-xs">
<h1>Build</h1>
<img src="assets/images/img_1.png">
</div>
<div class="dropdown col-xs">
<p>Some things are written here</p>
<img src="assets/images/img_21.png" style="float: right;">
</div>
Jquery的:
$(document).ready(function(){
$(".dropdown_head").on('click'.function(){
$(".dropdown").slideToggle("slow");
});
});
CSS:
.dropdown_head{
width: 100%;
height: 90px;
}
.dropdown{
font-family: 'Dosis';
width: 100%;
height: 300px;
margin-left: 20px;
margin-top: 30px;
display: none;
}