我只是想返回一个偏移量<ul>
JS:
$(document).ready(function($){
console.log($('#rooms').offset.top);
}
CSS:
#rooms {
position: absolute;
top: 0px;
left: 300px;
height: 690px;
padding: 40px;
overflow: auto;
-webkit-overflow-scrolling: touch;
&::-webkit-scrollbar {
display: none;
}
}
但是,控制台仅输出undefined
.