如何为页面的正文设置默认字体大小? [英] How to set default font size to small for a page's body?

查看:118
本文介绍了如何为页面的正文设置默认字体大小?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我试过了

< body style =" font-family:Verdana,Arial,Helvetica; font-size:0.8em;" >



< body style =" font-family:Verdana,Arial,Helvetica; font-size:11pct;">



< body style =" font-family:Verdana,Arial,Helvetica; font-size:80%;">

to徒劳无功。在IE7中,它显示为中等。我做错了什么?


谢谢。

解决方案

Don Li写道:
< blockquote class =post_quotes>
我试过了

< body style =" font-family:Verdana,Arial,Helvetica; font-size:0.8em;" >



< body style =" font-family:Verdana,Arial,Helvetica; font-size:11pct;">



< body style =" font-family:Verdana,Arial,Helvetica; font-size:80%;">

to徒劳无功。在IE7中,它显示为中等。我做错了什么?


谢谢。



??在文档中设置字体大小并不会改变IE

*设置*,它会将字体*相对*的大小更改为该设置

(假设您''使用相对单位,如%或em)。


无论如何,为什么要设置页面的主要字体为

大小比用户觉得方便阅读要小吗?


4月16日上午10:44 *,Harlan Messinger

< hmessinger .removet ... @ comcast.netwrote:


Don Li写道:


我已经试过

< body style =" font-family:Verdana,Arial,Helvetica; font-size:0.8em;">



< body style =" font-family:Verdana,Arial,Helvetica; font-size:11pct;">



< body style =" font-family:Verdana,Arial,Helvetica; font-size:80%;">

无济于事。 *在IE7中,它显示为中等。 *我做错了什么?


谢谢。



??在文档中设置字体大小并不会改变IE

*设置*,它会将字体*相对*的大小更改为该设置

(假设您''使用相对单位,如%或em)。


无论如何,为什么要设置页面的主要字体为

大小比用户更方便阅读的小?



想获得一个关键点什么,为什么,为什么以及如何在一个屏幕上显示
(大约80%的完整屏幕)屏幕)无需滚动。


文章

< 8f ***************** ***************** @ u69g2000hse。 googlegroups.com>,

Don Li< ta ******** @ gmail.comwrote:


我''我试过

< body style =" font-family:Verdana,Arial,Helvetica; font-size:0.8em;">



< body style =" font-family:Verdana,Arial,Helvetica; font-size:11pct;">



< ; body style =" font-family:Verdana,Arial,Helvetica; font-size:80%;">

无济于事。在IE7中,它显示为中等。我做错了什么?



也许你忘记更改

浏览器中的默认字体大小,以便你的小字样。文字看起来不像你想要的那样?或者你可能遇到的问题是你的CSS

试图使文本小于浏览器中设置的最小字体大小



查看该组中的其他地方,了解为什么您不应该将
设置为将字体大小设置为100%以外的其他任何内容(即用户的

首选字体大小),特别是关于Verdana

相对于其他字体的问题。



I''ve tried
<body style="font-family:Verdana,Arial,Helvetica;font-size:0.8em;">
or
<body style="font-family:Verdana,Arial,Helvetica;font-size:11pct;">
or
<body style="font-family:Verdana,Arial,Helvetica;font-size:80%;">
to no avail. In IE7 it shows up as Medium. What did I do wrong?

Thanks.

解决方案

Don Li wrote:

I''ve tried
<body style="font-family:Verdana,Arial,Helvetica;font-size:0.8em;">
or
<body style="font-family:Verdana,Arial,Helvetica;font-size:11pct;">
or
<body style="font-family:Verdana,Arial,Helvetica;font-size:80%;">
to no avail. In IE7 it shows up as Medium. What did I do wrong?

Thanks.

?? Setting the font size in the document doesn''t change the IE
*setting*, it changes the sizes of the fonts *relative* to that setting
(assuming you''re using relative units like % or em).

Anyway, why are you trying to set the primary font of your page to a
size that''s smaller than the user finds convenient to read?


On Apr 16, 10:44*am, Harlan Messinger
<hmessinger.removet...@comcast.netwrote:

Don Li wrote:

I''ve tried
<body style="font-family:Verdana,Arial,Helvetica;font-size:0.8em;">
or
<body style="font-family:Verdana,Arial,Helvetica;font-size:11pct;">
or
<body style="font-family:Verdana,Arial,Helvetica;font-size:80%;">
to no avail. *In IE7 it shows up as Medium. *What did I do wrong?

Thanks.


?? Setting the font size in the document doesn''t change the IE
*setting*, it changes the sizes of the fonts *relative* to that setting
(assuming you''re using relative units like % or em).

Anyway, why are you trying to set the primary font of your page to a
size that''s smaller than the user finds convenient to read?

Would like to get key points of WHAT, For WHOM, WHY and HOW across on
one screen (about 80% of a full screen) without scrolling.


In article
<8f**********************************@u69g2000hse. googlegroups.com>,
Don Li <ta********@gmail.comwrote:

I''ve tried
<body style="font-family:Verdana,Arial,Helvetica;font-size:0.8em;">
or
<body style="font-family:Verdana,Arial,Helvetica;font-size:11pct;">
or
<body style="font-family:Verdana,Arial,Helvetica;font-size:80%;">
to no avail. In IE7 it shows up as Medium. What did I do wrong?

Perhaps you forgot to change the default font sizes in your
browser, so that your "small" text doesn''t look the way you
expect? Or perhaps you are running into issues where your CSS
is trying to make the text smaller than the minimum font size
set in your browser?

See elsewhere in this group for information about why you shouldn''t
set the body font-size to anything other than 100% (i.e. the user''s
preferred font size), and especially about problems with Verdana
relative to other fonts.


这篇关于如何为页面的正文设置默认字体大小?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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