我的代码显示都是整数,为什么谷歌浏览器显示的却是小数,而且是精度特别高的小数
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
* {
margin: 0;
}
.box1 {
width: 100px;
height: 100px;
background-color: #bfa;
position: relative;
top: 200px;
}
</style>
<script src="js/jquery-1.10.1.js"></script>
<script>
$(function () {
console.log($('.box1').position().top);
})
</script>
</head>
<body>
<div class="box1"></div>
</body>
</html>