亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

請問要實現錨點平滑的轉跳為什么我這個代碼沒有用啊,請問要怎么改嗎

請問要實現錨點平滑的轉跳為什么我這個代碼沒有用啊,請問要怎么改嗎

我的目的是要讓點擊右下角的那個藍色的方塊,然后跳到頂部的導航橫欄那為什么沒用啊<!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>
查看完整描述

目前暫無任何回答

  • 0 回答
  • 0 關注
  • 1550 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號