IE9 和位置固定
我正在尝试在一个简单的单页网站上使用垂直滚动的位置固定CSS,但遇到了 IE9 的问题,就像它忽略了固定属性一样,您可以在此处查看该网站
http://cairocubicles.com/sandbox/mahaly-iphone/
在 chrome、firefox 上看起来正确。
感谢您的帮助。 叶希亚
I'm trying to use the position fixed css on a simple one page website with vertical scrolling but am facing problems with IE9, it's like it's ignoring the fixed property, you can see the website here
http://cairocubicles.com/sandbox/mahaly-iphone/
looks right on chrome, firefox.
Appreciate the help.
Yehia
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
尝试添加文档类型以确保 IE9 不会出现异常。
Try adding a doctype to make sure IE9 isn't going into quirks.
这花了我一段时间才弄清楚。
我正在编写一些 JavaScript,其中包含要写入 console.log 的代码。从来没有注意到这是一个问题,因为我从不使用 IE,而且 FF 或 chrome 中似乎没有任何问题。我的声明上方有 js,这就是导致错误的原因。你不应该在该声明之前放置任何浏览器端的内容。
This took me a while to figure out.
I was writing some javascript using which contained code to write to console.log. Never noticed it was a problem as i never use IE and nothing appeared to be broken in FF or chrome. I had the js above my declaration and that was what was causing the error. you shouldnt put anything browser side before that declaration.