IE6居中文本 - 不需要的 [英] IE6 centering text - unwanted
问题描述
我有一个网络客户抱怨中心文字,因为它不应该是b $ b。我只是看了一下browsercam,它只出现在
Win IE 6 - 没有别的,其他一切都是合理的,因为它应该是
be。
我正在为网站使用原始的CSS1 AND表格。
首页位于 http://www.geocities.com/brigidregina/index.html
CSS生活在
http://www.geocities.com/brigidregin ... urselffree.css
如果您知道该怎么做,请点击电子邮件。
谢谢
2003年12月17日星期三22:24:40 GMT,Vorpal Chortler
< vo **** @ phreaker .net.invalid>写道:
我有一个网络客户抱怨中心文本,而不是
应该是。我只是看了一下browsercam,它只出现在
Win IE 6上 - 没有别的,其他一切都是合理的,因为它应该是
我正在使用原始网站的CSS1和表格。
首页位于 http://www.geocities.com/brigidregina/index.html
CSS生活在
http://www.geocities.com/brigidregin...urselffree.css
如果你知道该怎么做,也请点击邮件。
谢谢
你有很多< DIV align = center>在你的代码中,我不清楚
你想要尊重哪些,哪些不是你。但是你使用Doctype
来触发MSIE 6(和Opera 7 BTW)中的标准模式渲染,以及
这意味着使用了正统的解释:
附表中的内容是居中的,而不是表格本身。后者是
几乎没用BTW - 为什么中心表设置为98%和100%宽度?
-
Rijk van Geijtenbeek
网络是一种拖延装置:
它可以吸收尽可能多的时间来确保你不会得到任何
真正完成的工作。 - J.Nielsen
2003年12月17日星期三22:24:40 GMT,Vorpal Chortler
< vo **** @ phreaker.net.invalid>写道:
我有一个网络客户抱怨中心文本,而不是
应该是。我只是看了一下browsercam,它只出现在
Win IE 6上 - 没有别的,其他一切都是合理的,因为它应该是
我正在使用原始网站的CSS1和表格。
首页位于 http://www.geocities.com/brigidregina/index.html
CSS生活在
http://www.geocities.com/brigidregin...urselffree.css
当我切换到IE 6时,我的许多网站都发生了同样的事情。我需要返回并左对齐表中包含的所有文本。在IE 5.5中
默认< p>设置是左对齐,但不是在IE 6中。
2003年12月17日星期三,格林威治标准时间22:24:40,Vorpal Chortler在
$ b中宣布$ b comp.infosystems。 www.authoring.html:
我有一个网络客户抱怨中心文本,而不是
应该是。我只是看了一下browsercam,它只出现在
Win IE 6上 - 没有别的,其他一切都是合理的,因为它应该是
。
您在现有的每个浏览器上测试过它,只有IE6的行为类似于
那个?
好的,所以这是一个有问题的,因为我知道答案是否定的 - Opera
7表现相同。
我正在为网站使用原始的CSS1 AND表。
为什么?
首页是 http://www.geocities.com/brigidregina/index.html
您的HTML中有很多错误。第一步是解决这些问题。
http://validator.w3.org/
不确定它是否有所作为[1],但doctype
声明中的URI应为 http://www.w3.org/TR/html4/loose.dtd ,不是什么你的b $ b有。
CSS生活在
http://www.geocities.com/brigidregin...urselffree.css
几个CSS中的错误也是如此。 http://jigsaw.w3.org/css-validator/
BTW:验证器没有提到它,但<! - 和 - >不应该在你的CSS文件中使用
。
HTH
[1]可能,因为事实上O7中的行为是相同的,但不是
O6,这让我认为它是在Quirks中运行的。模式(O6没有
Quirks模式)。
-
Mark Parnell
http://www.clarkecomputers.com.au
I''ve got a web customer complaining about centered text when it''s not
supposed to be. I just looked over at browsercam and it only appears on
Win IE 6 - Nothing else, EVERYTHING else is justified left as it should
be.
I''m using primitive CSS1 AND tables for the site.
The top page is at http://www.geocities.com/brigidregina/index.html
The CSS lives at
http://www.geocities.com/brigidregin...urselffree.css
If you know what to do, please click email too.
thanks
On Wed, 17 Dec 2003 22:24:40 GMT, Vorpal Chortler
<vo****@phreaker.net.invalid> wrote:
I''ve got a web customer complaining about centered text when it''s not
supposed to be. I just looked over at browsercam and it only appears on
Win IE 6 - Nothing else, EVERYTHING else is justified left as it should
be.
I''m using primitive CSS1 AND tables for the site.
The top page is at http://www.geocities.com/brigidregina/index.html
The CSS lives at
http://www.geocities.com/brigidregin...urselffree.css
If you know what to do, please click email too.
thanks
You''ve got a lot of <DIV align=center> in your code, it''s not clear to me
which ones you want honored and which you don''t. But you use a Doctype
that triggers ''Standards mode'' rendering in MSIE 6 (and Opera 7 BTW), and
that means that an orthodox interpretation is used: the content of the
enclosed tables is centered, not the tables themselves. The latter is
hardly useful BTW--why center tables that are set to 98% and 100% widths?
--
Rijk van Geijtenbeek
The Web is a procrastination apparatus:
It can absorb as much time as is required to ensure that you won''t get any
real work done. - J.Nielsen
On Wed, 17 Dec 2003 22:24:40 GMT, Vorpal Chortler
<vo****@phreaker.net.invalid> wrote:
I''ve got a web customer complaining about centered text when it''s not
supposed to be. I just looked over at browsercam and it only appears on
Win IE 6 - Nothing else, EVERYTHING else is justified left as it should
be.
I''m using primitive CSS1 AND tables for the site.
The top page is at http://www.geocities.com/brigidregina/index.html
The CSS lives at
http://www.geocities.com/brigidregin...urselffree.css
The same thing happened to many of my sites when I switched to IE 6. I
had to go back and left-align all text contained in tables. In IE 5.5
the default <p> setting was left-align, but not in IE 6.
On Wed, 17 Dec 2003 22:24:40 GMT, Vorpal Chortler declared in
comp.infosystems.www.authoring.html:
I''ve got a web customer complaining about centered text when it''s not
supposed to be. I just looked over at browsercam and it only appears on
Win IE 6 - Nothing else, EVERYTHING else is justified left as it should
be.
You tested it on every browser in existence, and only IE6 behaves like
that?
OK, so that was a loaded question, because I know the answer is no - Opera
7 behaves the same.
I''m using primitive CSS1 AND tables for the site.
Why?
The top page is at http://www.geocities.com/brigidregina/index.html
You have a number of errors in your HTML. First step is to fix those.
http://validator.w3.org/
Not sure whether it will make a difference[1], but the URI in the doctype
declaration should be http://www.w3.org/TR/html4/loose.dtd, not what you
have.
The CSS lives at
http://www.geocities.com/brigidregin...urselffree.css
A couple of errors in your CSS too. http://jigsaw.w3.org/css-validator/
BTW: the validator doesn''t mention it, but the <!-- and --> shouldn''t be in
your CSS file.
HTH
[1] It may, because the fact that the behaviour is the same in O7, but not
O6, makes me think that it is running in "Quirks" mode (O6 didn''t have a
"Quirks" mode).
--
Mark Parnell
http://www.clarkecomputers.com.au
这篇关于IE6居中文本 - 不需要的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!