javascript - load method refreshes scroll bar disorderly
学习ing
学习ing 2017-07-05 10:50:21
0
1
796

I used load to introduce two public styles (head and tail), and then used ajax to obtain local json data from the middle part of the page and load some content images,

The results are refreshed from the ajax content. Each time the page is refreshed, the scroll bar scrolls down a little

Refresh from below the ajax content. Every time you refresh the page, it will jump to the top of the ajax content

I don’t know why the scroll bar won’t jump when I refresh it on my deskmate’s computer
It’s fine if I open the console and refresh it.
It was OK to refresh yesterday but not today!

I am using Google Chrome.
Is it a problem with my computer? Please tell me how to solve it! ! ! ! ! So sad! ! !

学习ing
学习ing

reply all (1)
扔个三星炸死你

Is it that when you have no content, your page is less than one screen? You can try to access ajax without clearing the original data. When the data comes back, clear it again when assigning it

    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!