最新回答 / chenxiaoxiao12
你跟老師的一樣的嗎??function change(id, count){? ? ? ? ? ? var ulList = document.getElementById(id);? ? ? ? ? ? var h = ulList.offsetHeight;? ? ? ? ? ? h += count;? ? ? ? ? ? if(count > 0){? ? ? ? ? ? ? ? if(h <= 42 ?){? ? ? ? ? ? ? ? ? ? ? ? ulList.style.he...
2016-05-26
最新回答 / 慕移動(dòng)9181930
attr用于獲取屬性元素名。就是attr(class)最后顯示的就是red。lthxobetzoeeifbczdgrtwazvpwebgvkpgolbmplxniwpzlyhbi
2016-05-25
最新回答 / 依偎幸福
因?yàn)?,設(shè)置了a標(biāo)簽的高度為20px;? line-height:20px;span標(biāo)簽又是a標(biāo)簽的子元素,繼承了a的屬性行高也是20px;兩個(gè)加起來(lái)是40px,上移20px;恰好就剩下方的20px能顯示出來(lái)。
2016-05-23
最贊回答 / 黃志明
jquery 庫(kù)鏈接改成百度的?<script src="http://libs.baidu.com/jquery/1.9.0/jquery.js"></script>
2016-05-23
最新回答 / TWT
<...code...>你代碼第12行設(shè)置的?#dh ul li ul ?a{ color:#000; display:none;} ?,但是后續(xù)代碼沒(méi)有設(shè)置對(duì)應(yīng)的a標(biāo)簽顯示(display:block;),而是設(shè)置了第15行的?#dh ul li:honve ul li{ display:block}可以去除第12行...
2016-05-16
最新回答 / 一支貓的煩惱
樣式不太對(duì),子菜單ul沒(méi)有寫ID是找不到的,定時(shí)器調(diào)用的時(shí)候只寫了一個(gè)參數(shù)<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-T...
2016-05-03