Web page is cut off in IE6

纵然是瞬间 提交于 2019-12-13 07:10:23

问题


I have a site at http://www.dellsvet.com/ which is being affected by a bug in IE6. The page will only show what will fit in the viewport, and you're unable to scroll down in IE6. I thought that I was dealing with the unscrollable content bug detailed here: http://www.positioniseverything.net/explorer/unscrollable.html -- but it's not a match as far as I can find. I've been tinkering with this for a while with no result.

Does anyone have any insight on this bug? I've got a feeling this is something simple staring me in the eye, but I'm missing it.

Thanks.


回答1:


You should consider not caring about IE6 because it's becoming more and more rare. Nevertheless, you asked a question, so I'm going to answer it.

Simply remove position: relative and z-index: 1 from #container.

Doing that fixes IE6, and I did not notice any differences in IE7/IE8 or Firefox.


Bonus, because I'm nice:

To fix the menu buttons, add this to your CSS:

.ie6 #nav li a { zoom: 1; display: inline }

Thanks to your use of HTML5 Boilerplate, you have that nice easy way to feed CSS to IE6.

To get (the drop downs) ul#nav li:hover ul working in IE6, you can use Whatever:hover.

Other than the above issues, that page looks fine to me in IE6.



来源:https://stackoverflow.com/questions/4995609/web-page-is-cut-off-in-ie6

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!