[MooTools]轻松滚动到底部
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了[MooTools]轻松滚动到底部相关的知识,希望对你有一定的参考价值。
This clean little script assumes you have a simple "A-name" style jump to some cool stuff at the bottom of the page that you want people to see. ID your link "browse" and your good. Certainly you could scroll to another ID on the page if you are so inclined.
<!-- the scripty script --> window.addEvent("domready", function() { var scroll = new Fx.Scroll(window); $('browse').addEvent('click', function() { scroll.toBottom(); }); }); </script> <!-- sample html --> <a href="javascript:void('false');" id="browse">Look at stuff below</a>
以上是关于[MooTools]轻松滚动到底部的主要内容,如果未能解决你的问题,请参考以下文章
使用Android ViewPager2在回收器视图中滚动到底部时自动更改选项卡项
SwiftUI不借助ScrollViewReader和ScrollViewProxy实现List自动滚动到底部