Why do page anchors sometimes miss?

后端 未结 7 1571
灰色年华
灰色年华 2020-12-15 05:41

On an HTML page, a link like this:

Location on Page

...should navigate to this spot on the

7条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-15 06:35

    As mentioned above, this is probably due to images being rendered late and 'adjusting' the layout as they load.

    If you can specify the size of the images then that much room can be allocated before they render, which should prevent the problem.

    As a side note I've had this problem before in the form of using forward/back between enough pages that the images needed reloading, causing me to end up in the wrong place after they had rendered.

提交回复
热议问题