<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> </head> <body> <!--将a链接设置成跳转对象--> <a href="#btn">跳转</a> <div style="height: 2000px"></div> <button id="btn">底部锚点位置</button> </body> </html>