在IE7中具有100%页面宽度而不是页面的表格 [英] Table with 100% width of page instead of page in IE7

查看:68
本文介绍了在IE7中具有100%页面宽度而不是页面的表格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我设置了一个100%宽度的表来占用所有可用空间,但在

IE7中它使用的不止于此,它使用了100%的页面宽度而不是

表容器的100%。你可以在IE7和其他浏览器中测试页面吗?

http://auriance.com/docs/tmp/test.html


我想要的主要内容和同一级别的右侧菜单。除了在IE7中,大多数浏览器都可以正常工作
。你知道我怎么解决吗?

呢?

谢谢。

解决方案

< blockquote>好的,我发现了。如果我将容器设置为宽度:100%,则表格

适合。


在文章中

< 11 ********************** @ 22g2000hsm.googlegroups。 com>,

" Charles A. Landemaine" < la ******** @ gmail.comwrote:


我设置一个宽度为100%的表来占用所有可用空间,但是在

IE7使用的不止于此,它使用100%的页面宽度而不是表格容器的100%
100%。你可以在IE7和其他浏览器中测试页面吗?

http://auriance.com/docs/tmp/test.html


我想要的主要内容和同一级别的右侧菜单。除了在IE7中,大多数浏览器都可以正常工作
。你知道我怎么解决吗?

呢?

谢谢。



输入4.01严格文档类型:


<!DOCTYPE HTML PUBLIC" - // W3C // DTD HTML 4.01 // EN"

" http://www.w3.org/TR/html4/strict.dtd">


正好在你的html页面顶部应该修复。


-

dorayme


On 10月25日晚上11点03分,dorayme< doraymeRidT ... @ optusnet.com.auwrote:


输入4.01严格的doctype:


<!DOCTYPE HTML PUBLIC" - // W3C // DTD HTML 4.01 // EN"

" http://www.w3.org/TR/ html4 / strict.dtd">


就在你的html页面的顶部,这应该修复。



谢谢dorayme。问题是,对于doctype我不能启用

怪癖模式来使用所有页面高度来垂直居中页面。


Charles。


I set a table with 100% width to occupy all available space, but in
IE7 it uses more than that, it uses 100% of the page width instead of
100% of the table container. Could you test the page in IE7 and in
other browsers please?

http://auriance.com/docs/tmp/test.html

I''d like the main content and the right menu on the same level. It''s
working fine in most browsers except in IE7. Do you know how I can fix
it?
Thanks.

解决方案

Ok, I found out. If I set the container to width: 100%, then the table
fits properly.


In article
<11**********************@22g2000hsm.googlegroups. com>,
"Charles A. Landemaine" <la********@gmail.comwrote:

I set a table with 100% width to occupy all available space, but in
IE7 it uses more than that, it uses 100% of the page width instead of
100% of the table container. Could you test the page in IE7 and in
other browsers please?

http://auriance.com/docs/tmp/test.html

I''d like the main content and the right menu on the same level. It''s
working fine in most browsers except in IE7. Do you know how I can fix
it?
Thanks.

Put in a 4.01 Strict doctype:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">

right at the top of your html page and this should fix.

--
dorayme


On Oct 25, 11:03 pm, dorayme <doraymeRidT...@optusnet.com.auwrote:

Put in a 4.01 Strict doctype:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">

right at the top of your html page and this should fix.


Thanks dorayme. The problem is that with a doctype I can''t enable
quirks mode to use all page height to center a page vertically.

Charles.


这篇关于在IE7中具有100%页面宽度而不是页面的表格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆