<script>
$(function () {
//获取城市模块到顶部的距离
var city_top = $(‘#city_top’).offset().top;
$(‘.city_li’).click(function () {
$(‘html,body’).animate({scrollTop:city_top},500);
})
})
</script>