Open lesenelir opened 1 month ago
https://segmentfault.com/a/1190000016554851
https://seven777777.github.io/myblog/work/2020/08/19/some-height/
对于包含滚动条的容器:
如果想让该容器位于视口的最上方,应设置 scrollTop = scrollHeight
scrollTop = scrollHeight
如果想让该容器在视口的位置开始显示,应设置 scrollTop = 0
scrollTop = 0
https://segmentfault.com/a/1190000016554851
https://seven777777.github.io/myblog/work/2020/08/19/some-height/