Anchor link cutting off the page based on height of absolute positioned element

后端 未结 1 1053
滥情空心
滥情空心 2020-12-20 23:16

When clicking on an anchor link, it cuts off a portion of the page. Near as I can tell it occurs in all browsers.

http://jsfiddle.net/PJDWs/

If you go to th

相关标签:
1条回答
  • 2020-12-20 23:58

    If you remove the height:100%; and replace it with bottom:0; it will work because the height, with top and bottom set, is then defined by the enclosing container - it's an interesting bug but this workaround will get the job done.

    0 讨论(0)
提交回复
热议问题