Issues with fixed header, footer and side bar on i

2019-07-04 23:47发布

I'm in the process of developing a new website for a local club.

I've created the main webpage and have a fixed header, footer and side bar, the content is in a scrolling element. The page looks perfect on my MacBook and in various browsers. When I look at the page on my iPhone or iPad the page looks as it should until I zoom the page and then the fixed side bar is no longer fixed.

If anyone has any clues as to what I'm doing wrong I'd be very grateful as this is driving me mad.

The test page can be viewed at http://tawvelo.org/new/home.html.

I've attached a couple of photos which will hopefully show the issue.

Photo of how page should look

Photo of how page looks with iPhone / iPad zoom

1条回答
唯我独甜
2楼-- · 2019-07-05 00:27

position: fixed is known not to play well on iOS - http://remysharp.com/2012/05/24/issues-with-position-fixed-scrolling-on-ios/

How to fix it? Easy. Search StackOverflow. This question has been asked previously:

  1. CSS “position: fixed;” into iPad/iPhone?
  2. Fixed positioning in Mobile Safari
查看更多
登录 后发表回答