Why does Safari seem to have a problem with css position:fixed?
I am working on this开发者_Python百科 site: http://www.mywebclass.org/~jeff/ . A large percent of the ui is built with position:fixed;. In all the browsers except Safari it renders fine. But in Safari it is all messed up. Is there any way to fix this?
You have position:fixed
on a few elements but you haven't set any of top
, left
, right
, or bottom
to tell the browser where they should be positioned. The browser will be left to guess (within limits) what you mean if you don't specify the position and different browsers will guess different things. The solution is to add left
and top
properties to all your position:fixed
elements.
精彩评论