IE字体大小 [英] IE font-size
问题描述
我已启动并运行网站( www.solsoft.gr)。我用FF2和
IE6进行了测试,并且对一些IE黑客工作正常。
好的CSS不是很好,因为我开始用另一个设计它看起来和
客户最终想要一个3列布局。
现在我看到IE7搞砸了。首先是左边距
,我不知道为什么它存在。其次,当我看到页面时,字体
太大了。我第一次有身体{font-size:0.62em},但现在改为
到11px。如果我重新加载页面(在IE7中)字体显示良好。但是为什么我需要重新加载?
? (我不会用IE7覆盖CSS)。
感谢任何帮助。
感谢
I have a site up and running (www.solsoft.gr). I tested it with FF2 and
IE6 and works ok with some IE hacks.
Ok the CSS isn''t good cause I started designing it with another look and
the customer ended up wanting a 3-column layout.
Now I see that IE7 mess things up. First of all there''s a left margin
which I don''t know why it exists. Secondly when I see the page the fonts
are way too big. I first had body{font-size:0.62em} but now changed it
to 11px. If I reload the page (in IE7) the fonts shows good. But why do
I have to reload? (I don''t override the CSS with IE7).
Any help is appreciated.
thanks
推荐答案
Harris Kosmidis写道:
Harris Kosmidis wrote:
我有一个站点启动并运行( www.solsoft.gr)。我用FF2和
IE6测试它,并且可以正常使用一些IE黑客。
I have a site up and running (www.solsoft.gr). I tested it with FF2 and
IE6 and works ok with some IE hacks.
....可能取决于你的意思OK。我不能在IE6中调整你的文本大小
,如果我在FF中调整文本大小或者尝试使我的视口小于890px,那么布局会中断。
....possibly depending on what you mean by "OK." I can''t resize your text
in IE6, and if I resize text in FF or try to make my viewport smaller
than around 890px, the layout breaks.
>
好的CSS不是很好,因为我开始用另一种外观设计它并且
客户最终想要一个3列布局。
现在我看到IE7搞砸了。首先是左边距
,我不知道为什么它存在。
>
Ok the CSS isn''t good cause I started designing it with another look and
the customer ended up wanting a 3-column layout.
Now I see that IE7 mess things up. First of all there''s a left margin
which I don''t know why it exists.
*其中*是左边距?
*where* is the left margin?
其次当我看到页面时字体
太大了。
Secondly when I see the page the fonts
are way too big.
好笑,对我来说,它们有点小。但你的意思是只在IE7中,我没有b $ b这里没有。
Funny, for me, they''re kind of small. But you mean only in IE7, which I
don''t have here.
我第一次有身体{font-size:0.62 em}但现在将它改为
到11px。
I first had body{font-size:0.62em} but now changed it
to 11px.
哦,*这个*不是最好的解决方案,可以吗? (虽然以.6em开始使用
也很有趣。)现在我知道为什么文本是
在IE6中不可调整大小。
Ooh, *this* can''t be the best solution, can it? (Although starting off
with .6em is kind of funny, too.) Now I know why the text is
non-resizable in IE6.
如果我重新加载页面(在IE7中),字体显示效果很好。但是为什么我需要重新加载?
? (我不会用IE7覆盖CSS)。
If I reload the page (in IE7) the fonts shows good. But why do
I have to reload? (I don''t override the CSS with IE7).
我不知道你在这里压倒什么意思。
I''m not sure what you mean about overriding here.
>
>
如上所述,我没有在IE7中看到你的页面,但我确实看了你的
CSS。我看到你有一些尝试使用下划线黑客,如
_margin-left:-6px;。也许你不知道IE7会忽略这个
规则。请仔细阅读本文,进行一些讨论以及其他IE7-CSS特色:
http://msdn.microsoft.com/library/de...css_compat。 asp
哦,哎呀;长网址。试试这个: http://tinyurl.com/b245h 。
>
顺便说一句,你的大部分页面都是深红色的文字,背景是粉红色的
背景,因为这是我目前的默认设置。但是你的
sollogo.gif图像假设是白色背景,而且看起来并不那么好。
很好。要考虑的事情(其他)!
通过W3C验证器运行您的页面。另外,我不知道为什么你想要过渡时期的b $ b。看起来你可以使用4.01,严格。
HTH
-
John
As mentioned, I haven''t seen your page in IE7, but I did look at your
CSS. I see you have some attempts at using the underscore hack, as in
_margin-left:-6px;. Perhaps you are not aware that IE7 will ignore this
rule. Have a read through this article, for some discussion of that and
other IE7-CSS specialities:
http://msdn.microsoft.com/library/de...css_compat.asp
Ooh, yuck; long URL. Try this: http://tinyurl.com/b245h.
By the way, most of your page is in dark red text, on a garish pink
background, because that''s what I currently have as my default. But your
sollogo.gif image assumes a white background, and things don''t look so
nice. Something (else) to think about!
Run your page through the W3C validator. Also, I don''t know why you want
to ust transitional; it looks like you could use 4.01, strict.
HTH
--
John
那么关于font-size的建议是什么? .6em?问题是IE7
如果按重新加载,页面会很好。如果您访问链接,
字体很大。如果你重新加载字体很小。我无法理解
这个重新加载行为。
另一个问题(我的第一篇文章中没有提到)是< div
id =" address"(不是网页设计部分,但是之前用的是
电话)。我想把它集中到主要的中间div。我把它放在
那里,但是FF渲染它应该是bith IE6 / 7不是。
John Hosking写道:
So what''s the suggestion about font-size? .6em? The problem is that IE7
renders the page quite good if I press reload. If you visit a link the
fonts are big. If you reload the fonts are small. I can''t understand
this "reload" behavior.
The other problem (not mentioned in my first post) is the <div
id="address"(not the webdesign part, but the previous with the
telephone). I want to center it to the main middle div. I have put it
there but while FF renders it where it should be bith IE6/7 doesn''t.
John Hosking wrote:
Harris Kosmidis写道:
Harris Kosmidis wrote:
>我有一个站点启动并运行( www.solsoft.gr)。我用FF2和IE6进行了测试,并且对一些IE黑客工作正常。
>I have a site up and running (www.solsoft.gr). I tested it with FF2 and
IE6 and works ok with some IE hacks.
...可能取决于你所说的OK。我不能在IE6中调整你的文本大小
,如果我在FF中调整文本大小或者尝试使我的视口小于890px,那么布局会中断。
...possibly depending on what you mean by "OK." I can''t resize your text
in IE6, and if I resize text in FF or try to make my viewport smaller
than around 890px, the layout breaks.
>>
好的CSS不是很好的原因我开始用另一种外观设计它并且
客户最终想要一个3列的布局。
现在我看到IE7搞砸了。首先,有一个左边缘
我不知道为什么它存在。
>>
Ok the CSS isn''t good cause I started designing it with another look and
the customer ended up wanting a 3-column layout.
Now I see that IE7 mess things up. First of all there''s a left margin
which I don''t know why it exists.
*其中*是左边距?
*where* is the left margin?
>其次当我看到页面时的字体
太大了。
>Secondly when I see the page the fonts
are way too big.
好笑,对我来说,它们有点小。但你的意思是只在IE7中,我没有b $ b这里没有。
Funny, for me, they''re kind of small. But you mean only in IE7, which I
don''t have here.
>我第一次有身体{font-size :0.62em}但现在改为
到11px。
>I first had body{font-size:0.62em} but now changed it
to 11px.
哦,*这个*不是最好的解决方案,可以吗? (虽然以.6em开始使用
也很有趣。)现在我知道为什么文本是
在IE6中不可调整大小。
Ooh, *this* can''t be the best solution, can it? (Although starting off
with .6em is kind of funny, too.) Now I know why the text is
non-resizable in IE6.
>如果我重新加载页面(在IE7中),字体显示良好。但为什么我要重装? (我不会用IE7覆盖CSS)。
>If I reload the page (in IE7) the fonts shows good. But why do
I have to reload? (I don''t override the CSS with IE7).
我不知道你在这里压倒什么意思。
I''m not sure what you mean about overriding here.
>>
>>
如上所述,我在IE7中没有看到你的页面,但我确实看了你的
CSS。我看到你有一些尝试使用下划线黑客,如
_margin-left:-6px;。也许你不知道IE7会忽略这个
规则。请仔细阅读本文,进行一些讨论以及其他IE7-CSS特色:
http://msdn.microsoft.com/library/de...css_compat。 asp
哦,哎呀;长网址。试试这个: http://tinyurl.com/b245h 。
>
顺便说一句,你的大部分页面都是深红色的文字,背景是粉红色的
背景,因为这是我目前的默认设置。但是你的
sollogo.gif图像假设是白色背景,而且看起来并不那么好。
很好。要考虑的事情(其他)!
通过W3C验证器运行您的页面。另外,我不知道为什么你想要过渡时期的b $ b。看起来你可以使用4.01,严格。
HTH
As mentioned, I haven''t seen your page in IE7, but I did look at your
CSS. I see you have some attempts at using the underscore hack, as in
_margin-left:-6px;. Perhaps you are not aware that IE7 will ignore this
rule. Have a read through this article, for some discussion of that and
other IE7-CSS specialities:
http://msdn.microsoft.com/library/de...css_compat.asp
Ooh, yuck; long URL. Try this: http://tinyurl.com/b245h.
By the way, most of your page is in dark red text, on a garish pink
background, because that''s what I currently have as my default. But your
sollogo.gif image assumes a white background, and things don''t look so
nice. Something (else) to think about!
Run your page through the W3C validator. Also, I don''t know why you want
to ust transitional; it looks like you could use 4.01, strict.
HTH
.. oO(Harris Kosmidhs)
..oO(Harris Kosmidhs)
>那么关于font-size的建议是什么? .6em?
>So what''s the suggestion about font-size? .6em?
1em / 100%
Micha
1em / 100%
Micha
这篇关于IE字体大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!