I have a fixed position header. And then I have the content; some divs with some text.
If I:
Then on the next page the page automatically scrolls about the same amount as the address bar !?
I don’t understand why it automatically scrolls the second page - it has nothing to do with the first ?!
And here is one thing that is even more interesting.
If I do the same action as above, except that before clicking any link I scroll again (a little), then the next page will load the layout properly without automatic scrolling / jumping !?
Any clues?
Safari (iOS) .
google, /. , ?!
- .html- , , . bootstrap.com(http://getbootstrap.com/examples/sticky-footer-navbar/). , :
. . , .
, .
( ) ( "href" ).# ( ), , id ( #).#, , id="" ( ) - , , .
#
id
id=""
" ", JavaScript CSS, / , " ".
, /, . - "" , . (, Chromium, Firefox, Safari, Opera ..) .
, , ; //, , ; , / , .
, . Google Chrom URL- ":///# "
, , , .
https://www.xda-developers.com/psa-enable-scroll-anchoring-in-google-chrome-to-prevent-annoying-page-jumps/
Source: https://habr.com/ru/post/1681063/More articles:What is the purpose of the HAVE_ * macros? - c ++OpenCL backend in Java Encog 3 - javaTravis-CI: Knitr not found in loadVignetteBuilder - rUnable to instantiate class ViewModel - androidMdBootstrap with Angular - angularHow to map a 2D numpy array to a 1D array with another 2D array as a map? - pythonGet exact decimal representation of JavaScript number - javascriptОблачные функции для Firebase: как получить значение удаленных данных - firebaseБлокнот PyCharm Jupyter: добавьте Jupyter к интерпретатору текущего проекта - pythonColoring templates for HTML elements when resizing a screen - javascriptAll Articles