Commit fc0866ea by caojingji

修改样式

parent 470e4def
......@@ -65,21 +65,22 @@
}
.btn-show,.btn_zdyan{
position: absolute;
bottom:-37px;
bottom:-31px;
left:50%;
margin-left: -56px;
background: url("/images/jt2.png");
background-size: cover;
color: #666;
display: none;
margin-top:3px;
margin-bottom: 10px;
width: 112px;
height: 35px;
width: 74px;
height: 24px;
border:none;
}
.btn-show{background: url("/images/jt1.png");top:32px;}
.btn_zdyan{background: url("/images/jt2.png");top:inherit;}
.btn-show{background: url("/images/jt1.png");top:32px;background-size: cover;}
.btn_zdyan{background: url("/images/jt2.png");top:inherit;background-size: cover;}
.btn-show:hover{
background-color:inherit;
border:none;
......@@ -426,9 +427,15 @@
console.log($(document).scrollTop());
if($(document).scrollTop()>=(gdWrap_H-140)){
$(".btn-show").css({"display":"inline-block"})
if($(".ul-wrap").css("display")!="none"){
$(".btn-show").addClass("btn_zdyan");
}
} else {
$(".btn-show").hide()
$(".ul-wrap").show();
$(".btn-show").removeClass("btn_zdyan");
}
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment