How to make a back-to-top button using CSS and HTML only?

前端 未结 12 1596
别那么骄傲
别那么骄傲 2020-12-28 16:11

What i\'m trying to do is kind of like a back to top button but to scroll down and up to a certain point on the page! Say for instance you have a long text and

12条回答
  •  被撕碎了的回忆
    2020-12-28 16:16

    first page 
    

    Basically what you have to do is replace the " #top" with the id of the first section or your page, or it could be the nav... Any id locate in the first part of the page and then try to set some style with css!

提交回复
热议问题