相对或绝对字体大小? [英] Relative or absolute font size?

查看:101
本文介绍了相对或绝对字体大小?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我应该使用< font size = -2>或< font size = 1> ??他们似乎给了相同的

结果...


我希望能够设置网站的默认字体系列和字体大小
和STILL SUPPORT _fluid_texts_。


-

Erik Andersson(AussieTraders.com.au)
http://www.aussietraders.com.au/

- 配售AussieTraders.com.au,澳大利亚的买入和购买是免费的。出售

marketplace

Should I use <font size=-2> or <font size=1>?? They seem to give the same
results...

I wish to be able to set the default font family and font size for a website
and STILL SUPPORT _fluid_texts_.

--
Erik Andersson ( AussieTraders.com.au )
http://www.aussietraders.com.au/
- Placing an add is FREE at AussieTraders.com.au, Australia''s buy & sell
marketplace

推荐答案

2004年2月18日星期三12:57:23 +1000,AussieTraders.com.au

< bo **** @ aussietraders.com.au>写道:
On Wed, 18 Feb 2004 12:57:23 +1000, AussieTraders.com.au
<bo****@aussietraders.com.au> wrote:
我应该使用< font size = -2>或< font size = 1> ??他们似乎给出了相同的结果...


相对,因为只有当你默认为3时,效果是相同的。

如果你需要更大的尺寸,1将是不可能的。请注意,在最近的

建议中,不推荐使用

设置HTML中的字体大小。

我希望能够设置默认值
网站的字体系列和字体大小
和STILL SUPPORT _fluid_texts _。
Should I use <font size=-2> or <font size=1>?? They seem to give the same
results...
Relative, because the effect is identical only when you''re default is 3.
If you need a larger size, 1 is going to be impossible. Be aware that
setting font sizes in the HTML is deprecated in the most recent
recommendations.
I wish to be able to set the default font family and font size for a
website
and STILL SUPPORT _fluid_texts_.




外部CSS会让你感到奇怪。查看 http://www.htmldog.com 获取

a CSS的良好开端。


不过,你仍然受网络现实的影响 - 用户可能没有你希望指定的字体
,所以有后备并使页面看起来很好的后备。并允许用户重新混合文本使其成为可读的,使用ems进行字体大小而不是固定的测量。您可以

*建议*一个字体系列和大小,但它可能不是什么可能或者

甚至可以在某些人的计算机上使用。



An external CSS will do you wonders. Check out http://www.htmldog.com for
a good beginning to CSS.

Still, you are subject to the realities of the web - the user may not have
the font you wish to designate, so have fallbacks and make the page look
good on the fallbacks. And allow the user to resixe text to make it
readable, use ems for font-size rather than a fixed measurement. You may
*suggest* a font family and size, but it may not be what is possible or
even desirable on some people''s computers.


命名为AussieTraders.com.au的乌鸦:
Quoth the raven named AussieTraders.com.au:
我应该使用< font size = -2>或< font size = 1> ??他们似乎给出了相同的结果...


两者都没有。将演示文稿移动到CSS。

我希望能够设置网站的默认字体系列和字体大小以及STILL SUPPORT _fluid_texts _。
Should I use <font size=-2> or <font size=1>?? They seem to give
the same results...
Neither. Move the presentation to CSS.
I wish to be able to set the default font family and font size for
a website and STILL SUPPORT _fluid_texts_.




body {

font-family:Arial,Helvetica,sans-serif;

font-size:100%;

}


-

-bts

-这个空间故意留空。



body {
font-family: Arial, Helvetica, sans-serif;
font-size: 100%;
}

--
-bts
-This space intentionally left blank.


这是否意味着我永远不应该使用< font>标签,每当我需要一个比默认值更小或更大的字体时使用类似的东西:


< div style =" font-size:150% "> Lorem ipsum dolor sit amet< / div>


或者你可以建议更好的东西吗?


-

Erik Andersson(AussieTraders.com.au)
http:// www.aussietraders.com.au/

- 在AussieTraders.com.au,澳大利亚的买入和购买出售

marketplace


" Beauregard T. Shagnasty" <一个********* @ example.invalid>。在消息中写道

news:jk ******************* @ twister.nyroc.rr.com ...
Does that mean I should never use the <font> tag and whenever I need a
smaller or bigger font than the default use something like:

<div style="font-size: 150%">Lorem ipsum dolor sit amet</div>

Or can you suggest something better?

--
Erik Andersson ( AussieTraders.com.au )
http://www.aussietraders.com.au/
- Placing an add is FREE at AussieTraders.com.au, Australia''s buy & sell
marketplace

"Beauregard T. Shagnasty" <a.*********@example.invalid> wrote in message
news:jk*******************@twister.nyroc.rr.com...
比如乌鸦名为AussieTraders.com.au:
Quoth the raven named AussieTraders.com.au:
我应该使用< font size = -2>或< font size = 1> ??他们似乎给出了相同的结果......
Should I use <font size=-2> or <font size=1>?? They seem to give
the same results...



两者都没有。将演示文稿移动到CSS。



Neither. Move the presentation to CSS.

我希望能够设置网站的默认字体系列和字体大小以及STILL SUPPORT _fluid_texts _。
I wish to be able to set the default font family and font size for
a website and STILL SUPPORT _fluid_texts_.



body {
font-family:Arial,Helvetica,sans-serif;
font-size:100%;
}

-
-bts
- 这个空间故意留空。



body {
font-family: Arial, Helvetica, sans-serif;
font-size: 100%;
}

--
-bts
-This space intentionally left blank.



这篇关于相对或绝对字体大小?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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