怎么下拉显示返回顶部
#toTop{
width: 50px;
height: 50px;
position: fixed;
right: 25px;
bottom: 45px;
display: none;
z-index: 999999;
background-image: url(template/zhikai_n5chengshiv9/images/dinbu.png);
background-repeat: no-repeat;
background-position: 0px -156px;
opacity: 0.3;
filter: alpha(opacity=30);
}
#toTop:hover{
background-image: url(template/zhikai_n5chengshiv9/images/dinbu.png);
background-position: -50px -156px;
}
< SCRIPT src="jquery-1.7.1.min.js" type="text/javascript"></SCRIPT>
< div style="width:100%;height: 1000px;">
< a title="返回顶部" id="toTop"></a>
< /div>
display: none; 设置为不显示
下拉滚动条怎么让其显示返回顶部
用jquery就可以实现 这个知道,套用了好多jquery都没有用,能给写个么#toTop
页:
[1]