亲测可用,若有疑问请私信
使用Jq进行锚点定位
-
<script>
-
$(document).ready(function(){
-
$('html, body').animate({scrollTop: $('.listbox1').offset().top}, 300)
-
});
-
</script>
使用Jq进行锚点定位
<script>
$(document).ready(function(){
$('html, body').animate({scrollTop: $('.listbox1').offset().top}, 300)
});
</script>