请问要实现锚点平滑的转跳为什么我这个代码没有用啊,请问要怎么改吗

我的目的是要让点击右下角的那个蓝色的方块,然后跳到顶部的导航横栏那为什么没用啊http://img.mukewang.com/5890b3b000011b1719141036.jpghttp://img.mukewang.com/5890b3b200015a6b16450845.jpg

<!DOCTYPE html>

<html>

<head>

    <meta charset="utf-8">

    <title>ad</title>

    <style type="text/css">

        *{margin: 0; padding: 0;}

    div{background: red; width: 100%; height: 3000px;}

    div#list{height: 100px; width: 100%; background: green; position: fixed;}

    div#go{height: 100px; width: 100px; background: blue; position: fixed; bottom: 10px; right: 10px;}

    </style>

    <script type="text/javascript" src="http://www.keleyi.com/keleyi/pmedia/jquery-1.9.1.min.js"></script> 

     <script type="text/javascript">

     


     $(function () { 

     $(window).scroll(function () { 

        if ($(window).scrollTop() > 200) { 

        $("#list").slideUp(1000); 

     } 

      else { 

        $("#list").slideDown(1000); 

     } 

    }); 

    

    $("#go").click(function(){

     $(“html,body”).animate({scrollTop:$(“#list”).offset().top},1000);


    });


  }); 


    

    </script>

</head>

<body>

 <div>

  <div id="list"></div>

  <div id="go"></div>

 </div>


</body>

</html>


无节操司机
浏览 1515回答 0
0回答

慕瓜9220888

QFXNMKSYSLAZBURVVFXVBKLSJJAKGLATAXUEYQZOHYEVVXFYRJAQCJTRAZMAJZAJJIXMDDUEFNFBKVVFPGLTMFMSZKCTMVOWNXRNVLUMJAHBGFXGPGTTAOTTCUBYPHKYTSHRBMWVTSLAXEVLSQXGFTLIMQBQBKKWQWIZEGOBBUNRSAFBHDWGHILYQZJZJCASRWWPSVOJOGIIGSMPGZHZZSLYYMRGYIBBNZQHIHUUXNWPBGBBKHHXOTRTMMCMGKPHLBNNKWNPUMVYRHITYJIVEYEJUWTLLOHTIJVDFOQAQULGCEXXGMBPUFBBHNTQEMEQQTMDSATLUNNJNNQDIGSTBHLJLGVOOKXDWSOWGRRXVXMOBRISTICLYSJQDDRQCLXERISTIATCCTYPNLUTSJYVFOSSKZGXKRGUDZYYFPQVA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