第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

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

為什么我跟老師照著敲得,第一是背景圖沒有占100%;第二點擊收起沒有效果,哪位大神有時間給解釋一下唄?。。?/h1>
求解??

<!doctype html>
<html>
<head>
?? ?<meta charset="UTF-8">
?? ?<title>特效菜單</title>
?? ?<style>
?? ??? ?.navlist{
?? ??? ??? ?position: absolute;
?? ??? ??? ?top: 10px;
?? ??? ?}
?? ??? ?a{
?? ??? ??? ?text-decoration: none;
?? ??? ??? ?color: white;
?? ??? ?}
?? ??? ?.navlist a{
?? ??? ??? ?margin-left:60px;
?? ??? ??? ?color: #666;
?? ??? ?}
?? ??? ?/*展開層*/
?? ??? ?.expand{
?? ??? ???? height:0px;
?? ??? ??? ?background-color: #333d4d;
?? ??? ??? ?overflow: hidden;
?? ??? ??? ?position: relative;
?? ??? ??? ?top:30px;
?? ??? ??? ?width: 100%;
?? ??? ?}
?? ??? ?/*二級菜單外層*/
?? ??? ?.expdiv{
?? ??? ??? ?height:130px;
?? ??? ??? ?width: 500%;
?? ??? ?}
?? ??? ?/*二級菜單樣式*/
?? ??? ?.expdiv-list{
?? ??? ??? ?width:20%;
?? ??? ??? ?text-align: center;
?? ??? ??? ?float: left;
?? ??? ??? ?line-height: 110px;
?? ??? ??? ?color: white;
?? ??? ?}
?? ??? ?.expand .close-btn{
?? ??? ??? ?width: 120px;
?? ??? ??? ?height: 20px;
?? ??? ??? ?background: url(images/broswer_home.png) no-repeat -13px -117px;
?? ??? ??? ?position: absolute;
?? ??? ??? ?left: 50%;
?? ??? ??? ?bottom: -2px;
?? ??? ??? ?margin-left: -60px;
?? ??? ??? ?cursor: pointer;
?? ??? ?}

?? ?</style>
?? ?<script type="text/javascript" src="js/jquery-1.7.2.min.js"></script>
?? ?<script>
?? ??? ??? ?$(function(){
?? ??? ??? ??? ?$("#menuList").on("click","a",function(){

?? ??? ??? ??? ??? ??? ?if($(this).hasClass("btn-active")){
?? ??? ??? ??? ??? ??? ??? ?$("#expandZone #closeBtn").click();
?? ??? ??? ??? ??? ??? ??? ?return false;
?? ??? ??? ??? ??? ??? ?}

?? ??? ??? ??? ??? ?var curIndex=$(this).index(),mlValue="-"+curIndex*100+"%";

?? ??? ??? ??? ??? ??? ?if($("#expandZone").hasClass("active")){
?? ??? ??? ??? ??? ??? ??? ?$("#expandZone .expdiv").animate({marginLeft:mlValue});

?? ??? ??? ??? ??? ??? ?}else{
?? ??? ??? ??? ??? ??? ??? ?$("#expandZone .expdiv").css({margineLft:mlValue});
?? ??? ??? ??? ??? ?$("#expandZone").animate({height:"130px"}).addClass("active");
?? ??? ??? ??? ??? ??? ?}

?? ??? ??? ??? ??? ??? ?$(this).addClass("btn-active").siblings().removeClass("btn-active");

?? ??? ??? ??? ??? ??? ?return false;
?? ??? ??? ??? ??? ?
?? ??? ??? ??? ?})

?? ??? ??? ??? ?$("#expandZone closeBtn").on("click",function(){
?? ??? ??? ??? ??? ??? ?$("#expandZone").animate({height:"0px"},function(){
?? ??? ??? ??? ??? ??? ??? ?$(this).relativeClass("active");
?? ??? ??? ??? ??? ??? ??? ?$("menuList .btn-active").removeClass("btn-active");
?? ??? ??? ??? ??? ??? ?});
?? ??? ??? ??? ??? ??? ?return false;
?? ??? ??? ??? ??? ??? ?
?? ??? ??? ??? ??? ?});
?? ??? ??? ?})
?? ?</script>
</head>
<body>
?? ?<div id="menuList"><!--一級菜單-->
?? ??? ?<a href="#">首頁</a>
?? ??? ?<a href="#">課程大廳</a>
?? ??? ?<a href="#">學(xué)習(xí)中心</a>
?? ??? ?<a href="#">關(guān)于我們</a>
?? ??? ?<a href="#">個人中心</a>
?? ??? ?<div id="expandZone"><!--二級菜單展開層-->
?? ??? ??? ?<div><!--二級菜單集合層-->
?? ??? ??? ??? ?<div><!--二級菜單-->
?? ??? ??? ??? ??? ?<a href="#">慕課網(wǎng)主頁</a>
?? ??? ??? ??? ?</div>
?? ??? ??? ??? ?<div>
?? ??? ??? ??? ??? ?<a href="#">前端課程</a>
?? ??? ??? ??? ??? ?<a href="#">手機開發(fā)</a>
?? ??? ??? ??? ??? ?<a href="#">后臺編程</a>
?? ??? ??? ??? ?</div>
?? ??? ??? ??? ?<div>
?? ??? ??? ??? ??? ?<a href="#">javascript</a>
?? ??? ??? ??? ??? ?<a href="#">css</a>
?? ??? ??? ??? ??? ?<a href="#">jQuery</a>
?? ??? ??? ??? ?</div>
?? ??? ??? ??? ?<div>
?? ??? ??? ??? ??? ?個人信息
?? ??? ??? ??? ?</div>
?? ??? ??? ??? ?<div>
?? ??? ??? ??? ?公司地址:111111111
?? ??? ??? ??? ?</div>
?? ??? ??? ?</div>
?? ??? ??? ?<div id="closeBtn"><!--關(guān)閉按鈕-->
?? ??? ??? ?</div>
?? ??? ?</div>?? ??? ?
?? ?</div>
</body>
</html>

正在回答

3 回答

你那個關(guān)閉按鈕給的是?id="closeBtn",然后style里的是??.expand .close-btn,看看你的style里的內(nèi)容,仔細改一下,

?.expdiv-list{
?? ??? ??? ?width:20%;
?? ??? ??? ?text-align: center;
?? ??? ??? ?float: left;
?? ??? ??? ?line-height: 110px;
?? ??? ??? ?color: white;
?? ??? ?}

你的body里沒有定義.expdiv-list,也要定義一下。

綜上所訴,你的style和你的body里的id或class不對應(yīng),你在看看

0 回復(fù) 有任何疑惑可以回復(fù)我~

html結(jié)構(gòu)有問題,你再好好看一下,錯誤一大堆。

0 回復(fù) 有任何疑惑可以回復(fù)我~

求助哪位大神幫忙看一下是什么問題

0 回復(fù) 有任何疑惑可以回復(fù)我~

舉報

0/150
提交
取消
形形色色的下拉菜單
  • 參與學(xué)習(xí)       106933    人
  • 解答問題       563    個

本教程從易到難,循循漸進,運用不同技術(shù)實現(xiàn)動態(tài)下拉菜單

進入課程

為什么我跟老師照著敲得,第一是背景圖沒有占100%;第二點擊收起沒有效果,哪位大神有時間給解釋一下唄!??!

我要回答 關(guān)注問題
微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號