$(".nav>li").hover(function(){
$(this).children(".subNav").stop().animate({"height":"120px"},500)
},function(){
$(this).children(".subNav").stop().animate({"height":"0px"},500)
})
}
$(this).children(".subNav").stop().animate({"height":"120px"},500)
},function(){
$(this).children(".subNav").stop().animate({"height":"0px"},500)
})
}
2017-11-16
我認為其實這里用text-indent并不合適,用text-align:center就可以了,實現(xiàn)了li里的內(nèi)容居中對齊……
2017-10-03