Sliding of jquery

Click a button and the page slides to a corresponding area. When there is a scroll bar on the page, this $("html,body"). Animate ({scrollTop:" 200px"}) can be realized, but the above method is not allowed when the page does not have a scroll bar. In the case of no scroll bar on the page, how to click the button and slide the page to the corresponding area?

Mar.31,2021

there is a problem with this requirement. Since there is only one screen on the page and there is no scroll bar, how can he roll? why do you need to scroll even if you can see it in the visual area?

Menu