scroll

English [skr??l] American [skro?l]

n. (??? ??? ?? ???) ?? ????, ?? ????, ????(??); . ??? ???? (??? ?)? ??? ??? ?????

vi (?????) ??? ???? ?????.

top

English [t?p] US [tɑ:p]

n. ??, ??(??) ??, (?? ??? ?) ??

adj; ???

vt. ??? ???...; ??? ??;

????? ????() ??? ???

??: scrollTop() ???? ???? ??? ??? ??? ?? ??? ????? ?????. ??? ?? ???? ??? ???? ??? ??? ???? ?????. ? ???? ?? ??? ???? ??? ??? ?? ??? ???? ?? ??? ?????.

??: ??$(selector).scrollTop(offset)

????:

???? Description
offset ????. ??? ?? ??????? ???? ?? ??? ?????.

??: ? ??? ??? ??? ??? ?? ?? ??? ?????. ?? ???? ? ???? ?? ? ???? ???? ? ?? ??? ??? ?? ???? ?????. ?? ???? ? ???? ?? ? ???? ???? ?? ??? ??? ?? ???? ?????.

????? ????() ??? ?

<html>
<head>
<script type="text/javascript" src="http://apps.bdimg.com/libs/jquery/2.1.1/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
  $(".btn1").click(function(){
    $("div").scrollTop(100);
  });
  $(".btn2").click(function(){
    alert($("div").scrollTop()+" px");
  });
});
</script>
</head>
<body>
<div style="border:1px solid black;width:200px;height:200px;overflow:auto">
This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text.
</div>
<button class="btn1">把 scroll top offset 設(shè)置為 100px</button>
<br />
<button class="btn2">獲得 scroll top offset</button>
</body>
</html>
???? ?? ?

??? ????? ??? "???? ??" ??? ?????