質問編集履歴
1
文章の追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -5,3 +5,21 @@
|
|
5
5
|
この差は一体何なのでしょうか?
|
6
6
|
|
7
7
|
今の所四捨五入して回避しているのですが...。
|
8
|
+
|
9
|
+
|
10
|
+
|
11
|
+
```js
|
12
|
+
|
13
|
+
test.onscroll = function () {
|
14
|
+
|
15
|
+
var clientHeight = middle.clientHeight;
|
16
|
+
|
17
|
+
var scrollHeight = middle.scrollHeight;
|
18
|
+
|
19
|
+
var scrollTop = Math.ceil(this.scrollTop);
|
20
|
+
|
21
|
+
console.log(scrollHeight + "/" + scrollTop + "/" + clientHeight);
|
22
|
+
|
23
|
+
}
|
24
|
+
|
25
|
+
```
|