什么是最通用的字体大小值?百分比?EM是? [英] What is the most versatile sizing value for fonts? Percents?EM's?

查看:62
本文介绍了什么是最通用的字体大小值?百分比?EM是?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


这里只是观察一下:CSS新闻组

(comp.infosystems。 www.authoring.stylesheets )完全死了。为什么?...


无论如何这里是我的讨论要点:什么是最通用的价值

来设置字体大小?我将字体大小设置为百分比。我在body标签中设置了主要字体

大小(一切都将继承),然后调整其他

大小相关(标题,精细打印等) 。


我为一个小型非营利组织运营一个网站。来自

组织的几个人向我发表评论说他们认为字体尺寸太大

(我将其设置为95%),以1024x768分辨率观看。他们希望我减少它b $ b。问题是在1280x1024处查看时字体看起来很小。如果我再次减少它,那么字体将非常小而难以阅读

随着分辨率的增加。


那么该怎么办?缩放字体的最佳方法是什么,以便它们在所有分辨率下看起来都是合适的尺寸?我应该使用积分吗?像素? EM''s?


点和像素是一个固定值,但缺点是用户

无法在浏览器中调整字体大小。 EM'会工作,但他们

基本上像百分比一样工作 - 我会得到关于

字体大小的相同投诉。


那么......你会做什么?我正在考虑在我的身体标签中使用积分作为基础

值(例如,12点),然后使用ems调整其他字体

相对于那个尺寸(就像fineprint一样) ,h1 / h1 / h3等)


提前感谢任何建议。


-

Viken K.

Hello everyone,

Just an observation here: the CSS newsgroup
(comp.infosystems.www.authoring.stylesheets) is totally dead. Why?...

Anyway here''s my discussion point: What is the most versatile value to use
to set font-size? I set my font size in percentages. I set the main font
size in the body tag (which everything will inherit), then adjust other
sizes in relation to that (for headers, fine print, etc).

I run a site for a small non-profit. A couple of people from the
organization have commented to me that they think the font size is too big
(I set it to 95%) when viewed at 1024x768 resolution. They want me to reduce
it. The problem is that the fonts look small when viewed at 1280x1024. If I
reduce it any further, the fonts will be really tiny and difficult to read
as the resolutions increase.

So, what to do? What is the best way to scale the fonts so that they look
the right size at all resolutions? Should I use points? Pixels? EM''s?

Points and pixels would be a fixed value but the downside is that the user
could not adjust the font size within the browser. EM''s would work, but they
basically work like percentages - I would get the same complaints about the
font size.

So....what would *you* do? I was contemplating using points as the base
value in my body tag (say, 12 point), then using ems to adjust other font
sizes relative to that (like fineprint, h1/h1/h3, etc.)

Thanks in advance for any advice.

--
Viken K.

推荐答案

Viken Karaguesian写道:
Viken Karaguesian wrote:

Just这里有一个观察:CSS新闻组

(comp.infosystems。 www.authoring。样式表)完全死了。为什么?...
Just an observation here: the CSS newsgroup
(comp.infosystems.www.authoring.stylesheets) is totally dead. Why?...



它是怎么死的?我在2008年1月7日看到了18个帖子。

也许你的新闻服务器或客户端配置不正确。

-

Christian Hackl

How is it dead? I see 18 postings from January 7, 2008 in that group.
Maybe your news server or client isn''t configured correctly.
--
Christian Hackl


它是怎么死的?我从2008年1月7日开始在该组中发布了18个帖子。
How is it dead? I see 18 postings from January 7, 2008 in that group.

也许你的新闻服务器或客户端没有正确配置。
Maybe your news server or client isn''t configured correctly.



真的吗?从1月1日开始,我看到共有10个主题,其中三个是垃圾邮件。我发布的消息自1月2日起一直在那里,没有

回复,除了我自己的回复。我记得NG比那更繁忙。

我很惊讶流量太少了。看来,这个NG有更多的b
流量。这就是我带这篇文章来到这里的原因。

我不认为我做错了什么。我使用的Outlook Express和我一样的
一样。我没有改变任何东西。


-

Viken K.

Really? Since January 1, I see a total of 10 threads, three of which are
spam. A message that I posted has been sitting there since January 2 with no
replies, except for my own. I remember that NG being much busier than that.
I was surprised that there was so little traffic. This NG has much more
traffic, it seems. That''s why I came here with this post.

I don''t think I''m doing anything wrong. I use Outlook Express the same as I
always have. I haven''t changed anything.

--
Viken K.


1月8,12:13 * am,Viken Karaguesian

< vikenkNO_SPAM@NO_SPAMcomcast.netwrote:
On Jan 8, 12:13*am, "Viken Karaguesian"
<vikenkNO_SPAM@NO_SPAMcomcast.netwrote:

无论如何这里''我的讨论要点:*使用

设置字体大小的最通用价值是什么?
Anyway here''s my discussion point: *What is the most versatile value to use
to set font-size?



$ b ems和百分比,你在主题中提到的单位,就字体大小而言,

,相同的除外乘以

因子,并且浏览器的百分比越来越少。

ems and percentages, the units you mention in the subject, are, as far
as font-size is concerned, identical except for a multiplication
factor, and that browsers are less buggy with percentages.


我为一个小型非盈利组织运营一个网站。来自

组织的几个人向我评论说他们认为字体太大了
I run a site for a small non-profit. A couple of people from the
organization have commented to me that they think the font size is too big

http://www.dev-archive.net/articles/font-analogy.html

http://www.dev-archive.net/articles/font-analogy.html


那么,该怎么办?缩放字体的最佳方法是什么,以便它们在所有分辨率下看起来都是合适的尺寸?
So, what to do? What is the best way to scale the fonts so that they look
the right size at all resolutions?



什么是正确的尺寸?

What is "the right size"?


我应该使用积分吗?像素? EM的?
Should I use points? Pixels? EM''s?



如果你想要一个绝对固定的尺寸,那么积分(技术上)

正确的单位。一英寸是一英寸,而像素的大小

取决于屏幕的DPI,%取决于用户的

偏好。


积分问题是:


*他们忽略用户字体大小首选项

* IE无法调整大小它们(IE7可以用页面的其余部分缩放它们)

*大多数浏览器没有为系统配置正确的DPI,

所以他们渲染它们错误的大小

If you want an absolutely fixed size, then points are (technically)
the correct unit. An inch is an inch, while the size of a pixel
depends on the DPI of the screen and a % depends on the user''s
preference.

The problems with points are that:

* They ignore user font size preferences
* IE can''t resize them (IE7 can zoom them with the rest of the page)
* Most browsers aren''t configured with the correct DPI for the system,
so they render them the wrong size


那么......你会做什么?我正在考虑在我的身体标签中使用积分作为基础

值(例如,12点),然后使用ems调整其他字体

相对于那个尺寸(就像fineprint一样) ,h1 / h1 / h3等)
So....what would *you* do? I was contemplating using points as the base
value in my body tag (say, 12 point), then using ems to adjust other font
sizes relative to that (like fineprint, h1/h1/h3, etc.)



它与使用积分之间的唯一区别是

你可以改变一切改变样式表的一部分。它仍然会给用户造成所有问题。


-

David Dorward
http://dorward.me.uk/
http://blog.dorward.me.uk/


这篇关于什么是最通用的字体大小值?百分比?EM是?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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