$(document).ready(function(){
$('li').hover(function(){
$(this).children().css('overflow','visible');
},function(){
$(this).children().css('overflow','hidden');
})
})
$('li').hover(function(){
$(this).children().css('overflow','visible');
},function(){
$(this).children().css('overflow','hidden');
})
})
2018-01-03
.nav li a{ display:block;text-indent:20px;height:40px; line-height:40px; width:100px; background-color:#efefef; margin-bottom:2px;}
2018-01-03
最新回答 / 三生草
<!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-Type" content="text/html; charset=utf-...
2017-12-28
最新回答 / data_man7
用 jquery是“ <script>??????????????????????????????? ......?????????????????????????????? $("a").stop().animate({“width”:"160px"},200);?????????????????????????????? ......????????????????????? </script>”
2017-12-28
最新回答 / qq_fzjiwillbegy_0
a:hover{ color:#fff;background-position:0 -30px;}背景圖片要下移,不然color看不到
2017-12-27
aLi[i].onmouseover=function(){
var that = this.getElementsByClassName("subNav")[0];
var addHeight = 0;
var addEvt = setInterval(function(){
addHeight += 30;
if(addHeight > 120){ clearInterval(addEvt); };
that.style.height = addHeight + "px";
}, 20);
}
var that = this.getElementsByClassName("subNav")[0];
var addHeight = 0;
var addEvt = setInterval(function(){
addHeight += 30;
if(addHeight > 120){ clearInterval(addEvt); };
that.style.height = addHeight + "px";
}, 20);
}
2017-12-11
aLi[i].onmouseover=function(){
var that = this.getElementsByClassName("subNav")[0];
var addHeight = 0;
var addEvt = setInterval(function(){
addHeight += 30;
if(addHeight > 120){ clearInterval(addEvt); };
that.style.height = addHeight + "px"; }, 20);
}
var that = this.getElementsByClassName("subNav")[0];
var addHeight = 0;
var addEvt = setInterval(function(){
addHeight += 30;
if(addHeight > 120){ clearInterval(addEvt); };
that.style.height = addHeight + "px"; }, 20);
}
2017-12-11
最新回答 / ASuYongZhi
<style type="text/css">*{margin:0; padding:0; font-size:14px;}ul{ list-style:none;}a{color:#333;text-decoration:none}.nav li{? ? float:left;? ? border-top:1px solid #000;}.nav li a{ display:block; text-indent:20px; height:30px; line-height:30px; wid...
2017-12-07