默认字体 [英] Default Font

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

问题描述

您好,


我正在试图找出如何更改默认字体系列和

字体大小。我尝试将其添加到BODY部分,但它没有用。我试图在P部分尝试
,但它们并未包含在< P>中。标签。它们只是

基本字体。


有人可以帮忙吗?谢谢!

解决方案

2004年8月7日星期六17:10:16 GMT,Brett Baisley写道:

我试图找出如何更改默认字体系列和
字体大小。我尝试将其添加到BODY部分,


下次URL可能会有用,然后它会更容易看出你出错的地方。

......但它没有用。


懒惰是吗?你试过鞭打它吗? ;-)

..I
尝试了P部分,但它们没有包含在< P>中。标签。它们只是基本字体。




试试..


< html>

< head>

< title>字体< / title>

< style type =''text / css''>

body {

font-family:Arial,sans-serif;

font-size:100%;

}

< / style>

< / head>

< body>

< h1>字体测试< ; / h1>

< p>这应显示为Arial或通用的Sans-Serif字体

,以用户的首选尺寸显示。

< / body>

< / html>


HTH


-

Andrew Thompson
http://www.PhySci.org/ 开源软件套件
http://www.PhySci。组织/代码/ Web& IT帮助
http://www.1point1C.org/ Science&技术


好的,这似乎可以通过将字体更改为arial来正常工作,但现在我想要/ b $ b喜欢使字体大小为10px。我尝试使用font-size:10px,但它并没有改变
。有没有办法强制改变?

" Andrew Thompson" <硒******** @ www.invalid>在消息中写道

news:xf *************************** @ 40tude.net ...

2004年8月7日星期六17:10:16 GMT,Brett Baisley写道:

我试图弄清楚如何更改默认字体系列和
font-size。我尝试将其添加到BODY部分,



下次URL可能会有所帮助,然后更容易看到你出错的地方。
< blockquote class =post_quotes> ...但它没有用。



懒惰是吗?你试过鞭打它吗? ;-)

..我尝试了P部分,但它们没有包含在< P>中。标签。它们是
只是基本字体。



试试..

< html>
< head>
< ; title> Font< / title>
< style type =''text / css''>
body {
font-family:Arial,sans-serif;
font-size:100%;
}
< / style>
< / head>
< body>
< h1>字体测试< / h1>
< p>这应显示为用户首选尺寸的Arial或通用Sans-Serif字体。
< / body>
< ; / html>

HTH

- Andrew Thompson
http://www.PhySci.org/ 开源软件套件
http://www.PhySci.org/codes/ Web& IT帮助
http://www.1point1C.org/ Science&技术



尝试在最终用户上强制使用特定字体大小。如果最终用户视力受损并尝试设置视图 - >文字大小 - >更大?会发生什么? HTML的全部目的不是要对最终用户强制执行




-

Tony Marston

http://www.tonymarston.net


" Brett Baisley" < BA ***** @ hotmail.com.REMOVETHIS>在消息中写道

news:Zs ********************** @ twister01.bloor.is.n et.cable.rogers。 com ...

好吧,通过将字体更改为arial似乎可以正常工作,但现在我想要使字体大小为10px。我试过font-size:10px,但它并没有改变。有没有办法强制改变?

" Andrew Thompson" <硒******** @ www.invalid>在消息中写道
新闻:xf *************************** @ 40tude.net ...

周六,2004年8月7日17:10:16 GMT,Brett Baisley写道:

我试图找出如何更改默认字体系列和
字体大小。我尝试将其添加到BODY部分,
下次URL可能会有用,然后更容易看到你出错的地方。

。 ..但它没有用。



懒惰是吗?你试过鞭打它吗? ;-)

..我尝试了P部分,但它们没有包含在< P>中。标签。他们


只是基本字体。



试试..

< html>
< head> < br&>< title>字体< / title>
< style type =''text / css''>
body {
font-family:Arial,sans-serif;
font-size:100%;
}
< / style>
< / head>
< body>
< h1>字体测试< / h1>
< p>这应该以用户的首选尺寸显示为Arial或通用的Sans-Serif字体。
< / body>
< / html>

HTH

Andrew Thompson
http://www.PhySci.org/ 开源软件套件
http://www.PhySci.org/codes/ Web& IT帮助
http://www.1point1C.org/ Science&技术




Hello,

I am trying to figure out how to change the default font-family and
font-size. I tried adding this to the BODY section, but it didn''t work. I
tried to the P section, but they are not enclosed in <P> tags. They are just
basic fonts.

Can anyone help? Thanks!

解决方案

On Sat, 07 Aug 2004 17:10:16 GMT, Brett Baisley wrote:

I am trying to figure out how to change the default font-family and
font-size. I tried adding this to the BODY section,
An URL might be helpful next time, then it is
easier to see where you are going wrong.
...but it didn''t work.
Lazy was it? Did you try flogging it? ;-)
..I
tried to the P section, but they are not enclosed in <P> tags. They are just
basic fonts.



Try..

<html>
<head>
<title>Font</title>
<style type=''text/css''>
body {
font-family: Arial, sans-serif;
font-size: 100%;
}
</style>
</head>
<body>
<h1>Font Test</h1>
<p>This should display as either Arial or a generic Sans-Serif font
at the user''s preferred size.
</body>
</html>

HTH

--
Andrew Thompson
http://www.PhySci.org/ Open-source software suite
http://www.PhySci.org/codes/ Web & IT Help
http://www.1point1C.org/ Science & Technology


Ok, that seems to work ok by changing the font to arial, but now I would
like to make the font size 10px. I tried font-size: 10px but it doesn''t
change. Is there a way to force the change?
"Andrew Thompson" <Se********@www.invalid> wrote in message
news:xf***************************@40tude.net...

On Sat, 07 Aug 2004 17:10:16 GMT, Brett Baisley wrote:

I am trying to figure out how to change the default font-family and
font-size. I tried adding this to the BODY section,



An URL might be helpful next time, then it is
easier to see where you are going wrong.

...but it didn''t work.



Lazy was it? Did you try flogging it? ;-)

..I
tried to the P section, but they are not enclosed in <P> tags. They are just basic fonts.



Try..

<html>
<head>
<title>Font</title>
<style type=''text/css''>
body {
font-family: Arial, sans-serif;
font-size: 100%;
}
</style>
</head>
<body>
<h1>Font Test</h1>
<p>This should display as either Arial or a generic Sans-Serif font
at the user''s preferred size.
</body>
</html>

HTH

--
Andrew Thompson
http://www.PhySci.org/ Open-source software suite
http://www.PhySci.org/codes/ Web & IT Help
http://www.1point1C.org/ Science & Technology



It is considered back practice to attempt to force a particular font size on
the end user. What happens if the end user is visually impaired and tries to
set View->Text Size->Larger? The whole purpose of HTML is NOT to enforce
your preferences on the end user.

--
Tony Marston

http://www.tonymarston.net

"Brett Baisley" <ba*****@hotmail.com.REMOVETHIS> wrote in message
news:Zs**********************@twister01.bloor.is.n et.cable.rogers.com...

Ok, that seems to work ok by changing the font to arial, but now I would
like to make the font size 10px. I tried font-size: 10px but it doesn''t
change. Is there a way to force the change?
"Andrew Thompson" <Se********@www.invalid> wrote in message
news:xf***************************@40tude.net...

On Sat, 07 Aug 2004 17:10:16 GMT, Brett Baisley wrote:

I am trying to figure out how to change the default font-family and
font-size. I tried adding this to the BODY section,
An URL might be helpful next time, then it is
easier to see where you are going wrong.

...but it didn''t work.



Lazy was it? Did you try flogging it? ;-)

..I
tried to the P section, but they are not enclosed in <P> tags. They

are just basic fonts.



Try..

<html>
<head>
<title>Font</title>
<style type=''text/css''>
body {
font-family: Arial, sans-serif;
font-size: 100%;
}
</style>
</head>
<body>
<h1>Font Test</h1>
<p>This should display as either Arial or a generic Sans-Serif font
at the user''s preferred size.
</body>
</html>

HTH

--
Andrew Thompson
http://www.PhySci.org/ Open-source software suite
http://www.PhySci.org/codes/ Web & IT Help
http://www.1point1C.org/ Science & Technology




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

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