Young87

当前位置:首页 >个人收藏

js判断滚动条是否到底部

<!DOCTYPE html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit">
<title>js判断滚动条是否到底部</title>
<style>
    .bottom{ 
        width: 500px; 
        height: 50px; 
        position: fixed; 
        left: 50%; 
        margin-left: -250px; 
        top: 50%; 
        background: #f00; 
        color: #fff; 
        line-height: 50px; 
        text-align: center; 
        border-radius: 5px; 
        display: none;
    }
</style>
<script src="http://libs.baidu.com/jquery/1.11.3/jquery.min.js"></script>
<script>
    var timer;
    $(window).bind('scroll',function(){
        clearTimeout(timer);
        timer = setTimeout(function(){
            if($(window).scrollTop()&

除特别声明,本站所有文章均为原创,如需转载请以超级链接形式注明出处:SmartCat's Blog

上一篇: 【springboot】如何在自己的springboot项目中引用别的springboot项目jar

下一篇: CPU缓存一致性整理笔记

精华推荐