开发者

Why does Safari seem to have a problem with css position:fixed?

开发者 https://www.devze.com 2023-03-23 09:07 出处:网络
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

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消