Internet Explorer width issue

点点圈 提交于 2019-12-12 05:56:01

问题


*I'm re-posting this question because I only got one response before, and it didn't work. Hopefully someone new will see this and know what to do! *

I'm using IP Net Renderer to view my newly installed forum (http://www.datesphere.com/forum/) in IE7. If you care to take a look, you can see the forum is overflowing its containing element (it's wider than the 960px container I have for my entire site).

I've tried adding overflow:hidden to the .wrapper class as well as width:100% to .tborder per advice received on StackOverflow, but it didn't work.

The forum renders correctly in IE8+, FF, Chrome and Safari, but not IE 7. Does anyone know how I can fix this?


回答1:


If you use IE9/8 and run the Developer toolbar you will notice that the global.css that is being generated is different for IE7 from IE8. Take a look at what is generating that Style Sheet for you and see if you can modify it to make the MIN-WIDTH:930px; or MIN-WIDTH:100%;

Or a second option add somewhere after the glboal.css style sheet a inline-style or on page css or link another style sheet .wrapper { MIN-WIDTH:930px !important; } or .wrapper { MIN-WIDTH:100% !important; } so that it overrides whats generated in the global.css file.

IE7:

.wrapper {
    MIN-WIDTH: 970px; MARGIN: auto; WIDTH: 85%; MAX-WIDTH: 1500px
}

IE8:

.wrapper {
    MARGIN: auto
}



回答2:


Change your min-width value for your wrapper class. You can set an static width or set it to 100%.




回答3:


Remove #wrapper div And set IE7 specific .tborder {display:inline-table}



来源:https://stackoverflow.com/questions/5588894/internet-explorer-width-issue

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