亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

我看了好幾遍,實在是不知道哪里有問題,請各位大神幫幫忙

<!DOCTYPE html>

<html lang="en">


<head>

<meta charset="UTF-8">

<meta name="viewport" content="width=device-width, initial-scale=1.0">

<meta http-equiv="X-UA-Compatible" content="ie=edge">

<title>使用CSS實現下拉菜單</title>

<style>

*{

margin: 0;

padding: 0;

}

ul li{

list-style: none;

}

.nav{

font-size: 14px;

font-weight: bold;

list-style: none;

}

/* 一級菜單 */

.nav li{

float: left;

margin-right: 1px;

}

.nav li a{

line-height: 34px;

text-decoration: none;

background: #3f240e;

color: #fff;

display: block;

width: 80px;

text-align: center;

}

.nav ul{

list-style: none;

display: none;

position: absolute;

}

.nav li a:hover{

background: url(images/slide-pannel_14.png) 0 0 repeat-x;

}

.note{

color: #3f240e;

display: block;

background: url(images/slide-pannel_14.png) 0 0 repeat-x;

}

</style>

<script src="js/jquery-1.9.1.js"></script>

<script>

$(document).ready(function(){

$(".nav li").mousemove(function(){

$(this).find("ul").slideDown("1000");

})


$(".nav li").mouseleave(function(){

$(this).find("ul").slideUp("slow");

})

})

</script>

</head>


<body>


<ul class="nav">

<li><a href="#"><span class="note">首頁</span></a></li>

<li><a href="#">課程大廳</a></li>

<li><a href="#">學習中心</a>

<ul>

<li><a href="#">前端課程</a></li>

<li><a href="#">手機開發</a></li>

<li><a href="#">后端開發</a></li>

</ul>

</li>

<li><a href="#">經典案例</a></li>

<li><a href="#">關于我們</a></li>

</ul>


</body>


</html>


正在回答

1 回答

你可以檢查下你的jquery文件是不是正確的

1 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消
形形色色的下拉菜單
  • 參與學習       106938    人
  • 解答問題       563    個

本教程從易到難,循循漸進,運用不同技術實現動態下拉菜單

進入課程

我看了好幾遍,實在是不知道哪里有問題,請各位大神幫幫忙

我要回答 關注問題
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號