您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

使用jQuery实现返回顶部_jquery

2024/3/14 4:50:01发布25次查看
使用jquery实现。所用图片:
1、尝试滚动 此页面到底部即可出现go2top按钮。
2、go2top-inner暂未使用。
html&js定义:
复制代码 代码如下:
css定义
复制代码 代码如下:
.go2top {
    background: url(http://images.cnitblog.com/blog/84698/201303/28125209-67653841b1114531a2a1e6db63315d63.png) no-repeat scroll left top transparent;
    bottom: 65px;
    color: #444444;
    display: none;
    height: 50px;
    margin-left: 510px;
    position: fixed;
    right: 160px;
    text-align: center;
    width: 50px;
}
.go2top:hover {
    background-position: -50px top;
}
试试看,是不是有了返回顶部了,非常方便实用的功能,希望大家能够喜欢。
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product