📅  最后修改于: 2022-03-11 15:04:05.428000             🧑  作者: Mango
You can use an anchor to "focus" the div. This will bring the Div to the top of the page
I.e:
and then use the following javascript:
// the next line is required to work around a bug in WebKit (Chrome / Safari)
location.href = "#";
location.href = "#myDiv";