使用em的CSS类和标记字体大小。 [英] CSS class and tag font sizes using em.

查看:70
本文介绍了使用em的CSS类和标记字体大小。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,


我在一个地方议会工作,并且最近参与了

项目的一部分,用于新的网站设计,最终投入使用

9月在 www.tauntondeane.gov.uk


我在CSS上设置了相对大小,以便页面最好使用Microsoft IE设置查看大小
:文本大小:中等(我假设是

的默认值)因为没有多少人知道

浏览器文本的大小可以更改。


我们有一些抱怨说,在AOL浏览器上查看时,文字很小。


我们也被告知(我已经说过了)知道那些

知道如何改变文字大小的设置已经注意到文字大小差异之间存在很大的差距

(较大的是巨大的和较小的

不可读)我一直在为最后几个工作天来

尝试找到一种方法来缩小视图大小之间的差距,但是只能通过设置CSS相对字体大小来实现这一点,以便

当我将IE中的文字大小设置为

小时,我认为是正常的。


我希望那里有一些谁可以帮助或同意这个

将会发生。


干杯


卢克

解决方案

Luke Duddridge写道:

你好,

我在地方议会工作,最近参加了
新网站设计的项目于9月底在 www.tauntondeane.gov.uk

我在CSS上设置相对大小,以便在Microsoft IE设置为查看时页面最佳大小:文本大小:中(我假设是默认值),而不是m任何人都知道
浏览器文本的大小可以改变。

我们有一些抱怨说在AOL浏览器上查看时文本很小。 />
我们也被告知(我已经知道了)那些知道如何更改文字大小设置的人注意到文字大小差异之间存在很大差距(更大的是巨大的和更小的
是不可读的)我已经工作了最近几天来尝试找到一种方法来减少视图大小之间的差距,但只有能够通过设置CSS相对字体大小来实现这一点,以便当IE中的文本大小设置为
时,显示我认为正常的内容。

我希望有一些出来谁可以帮助或同意这个
将会发生。




不要为文本正文设置文本大小...留下它在

默认情况下...如果某人的默认文本si存在严重问题ze

他们会在看到你的网站之前就问过如何改变它...如果你不喜欢你自己的默认文字大小然后改变你自己的设置


-

eric
www.ericjarvis.co.uk

这些年来我等待革命

我们最终得到的一切是旋转


Luke Duddridge写道:

9月在 www.tauntondeane.gov.uk

我在CSS上设置了相对大小,以便页面最适合
Microsoft IE设置为查看:文本大小:中(我假设是默认值)因为没有多少人知道可以更改
浏览器文本的大小。
我们有一些抱怨说,在AOL浏览器上查看时,文字很小。


我根本不会使用关键字。有些关键字仅限MS,其他关键字不是
,但最简单的方法如下:


body {font-size:100%;}


然后设置相对于

大小的其他元素(h1,h2,p.important等)。适用于所有符合css标准的浏览器。这在NS4中使字体大小变大具有奇怪的效果。因此,最好从那个css-broken浏览器中隐藏这个

规则。


-

Brian

按照我的地址中的说明给我发电子邮件


在消息< fa ************** ***********@posting.google.com> ,卢克

Duddridge< lu ** @ 12-monkeys.freeserve.co.uk>写道

你好,

我在一个地方议会工作,并且最近参与了一个新网站设计项目的一部分,该网站设计在< 9月在 www.tauntondeane.gov.uk

[snip]

干杯

卢克




只是想知道。

页面 www.tauntondeane.gov.uk 包含'' W3C HTML 4.01''验证

标志。


通过w3c验证器运行页面给出:


" ;此页面不是有效的HTML 4.01 Transitional!"


........后面是需要修复的13个错误的列表。


问候。


-

杰克


Hello,

I work for a local council and have recently been part of the
project for a new website design which went live at the end of
september at www.tauntondeane.gov.uk.

I set the relative sizes on the CSS so that the page would be best
sized with Microsoft IE set to view:text size:Medium(which I assume is
the default value) as not many people know that the size of the
browser text can be changed.

We have had some complaints that the text is to small when being
viewed on AOL browsers.

We have also be told (which I sort of already knew) that those who
know how to change the text size setting have noticed a big gap
between the difference in text sizes (larger being Huge and smaller
being unreadable) I have been working for the last couple of days to
try and find a way of reducing the gap between the view sizes but have
only be able to do this by setting the CSS relative font sizes so that
what I consider normal appears when the text size in IE is set to
small.

I hope there is some one out there who can help or agrees that this
will happen.

Cheers

Luke

解决方案

Luke Duddridge wrote:

Hello,

I work for a local council and have recently been part of the
project for a new website design which went live at the end of
september at www.tauntondeane.gov.uk.

I set the relative sizes on the CSS so that the page would be best
sized with Microsoft IE set to view:text size:Medium(which I assume is
the default value) as not many people know that the size of the
browser text can be changed.

We have had some complaints that the text is to small when being
viewed on AOL browsers.

We have also be told (which I sort of already knew) that those who
know how to change the text size setting have noticed a big gap
between the difference in text sizes (larger being Huge and smaller
being unreadable) I have been working for the last couple of days to
try and find a way of reducing the gap between the view sizes but have
only be able to do this by setting the CSS relative font sizes so that
what I consider normal appears when the text size in IE is set to
small.

I hope there is some one out there who can help or agrees that this
will happen.



don''t set a text size for the main body of text...leave it at the
default...if somebody has serious problems with their default text size
they will have asked how to change it long before they see your site...if
you don''t like your own default text size then change your own settings

--
eric
www.ericjarvis.co.uk
all these years I''ve waited for the revolution
and all we end up getting is spin


Luke Duddridge wrote:

september at www.tauntondeane.gov.uk.

I set the relative sizes on the CSS so that the page would be best
sized with Microsoft IE set to view:text size:Medium(which I assume is
the default value) as not many people know that the size of the
browser text can be changed.

We have had some complaints that the text is to small when being
viewed on AOL browsers.



I wouldn''t use keywords at all. Some keywords are MS-only, others are
not, but the easiest way is as follows:

body {font-size: 100% ;}

Then set other elements (h1, h2, p.important, etc.) relative to that
size. Works on all css conforming browsers. This has the strange
effect of making font-size larger in NS4. Thus, best to hide this
rule from that css-broken browser.

--
Brian
follow the directions in my address to email me


In message <fa*************************@posting.google.com> , Luke
Duddridge <lu**@12-monkeys.freeserve.co.uk> writes

Hello,

I work for a local council and have recently been part of the
project for a new website design which went live at the end of
september at www.tauntondeane.gov.uk.
[snip]

Cheers

Luke



Just wondering.

The page www.tauntondeane.gov.uk contains a ''W3C HTML 4.01'' validation
flag.

Running the page through the w3c validator gives:

"This page is not Valid HTML 4.01 Transitional!"

........ followed by a list of the 13 errors that need fixing.

regards.

--
Jake


这篇关于使用em的CSS类和标记字体大小。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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