aLi[i].onmouseout = function () {
clearInterval(this.time);
var myul=this.lastElementChild,This = this;
This.time=setInterval(function(){
myul.style.height=myul.offsetHeight-8+'px';
if(myul.offsetHeight<=0){
myul.style.height=0;
clearInterval(This.time);
}
},30);
};
clearInterval(this.time);
var myul=this.lastElementChild,This = this;
This.time=setInterval(function(){
myul.style.height=myul.offsetHeight-8+'px';
if(myul.offsetHeight<=0){
myul.style.height=0;
clearInterval(This.time);
}
},30);
};
aLi[i].onmouseover = function (){
clearInterval(this.time);
var myul = this.lastElementChild,This = this;
This.time = setInterval(function () {
myul.style.height = myul.offsetHeight + 8 + 'px';
if (myul.offsetHeight >= 120) {
clearInterval(This.time);
}
},30);
};
clearInterval(this.time);
var myul = this.lastElementChild,This = this;
This.time = setInterval(function () {
myul.style.height = myul.offsetHeight + 8 + 'px';
if (myul.offsetHeight >= 120) {
clearInterval(This.time);
}
},30);
};
已采纳回答 / HTML500
.nav li a.on, .nav li a:hover{ background-position:0 -30px; color:#fff;}这个是a:hover和on一起设置的,注意一个逗号
2016-05-17
最新回答 / 慕客学渣会总瓢把子3201537
就是css样式的问题。我今天也碰到了。把#header #search .search_btn这种一长串定义样式的名字只留一个你用的到的去命名。不用的去掉。
2016-05-16
已采纳回答 / 夏天_hello
内联块状元素(inline-block)就是同时具备内联元素、块状元素的特点,代码display:inline-block就是将元素设置为内联块状元素。(css2.1新增),<img>、<input>标签就是这种内联块状标签。inline-block 元素特点:1、和其他元素都在一行上;2、元素的高度、宽度、行高以及顶和底边距都可设置。内联元素特点:1、和其他元素都在一行上;2、元素的高度、宽度及顶部和底部边距不可设置;3、元素的宽度就是它包含的文字或图片的宽度,不可改变。小伙伴们...
2016-05-14