字体默认 [英] font default
问题描述
是否有一种快捷方式来定义要应用于所有样式的默认字体系列(和
特征)?
-
>
Roedy Green加拿大心灵产品
Java词汇表
http ://mindprod.com
Is there a shortcut way to define the default font family (and
characteristics) to be applied to all styles?
--
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
推荐答案
Roedy Green< se ********* @ mindprod.com。 invalidwrites:
Roedy Green <se*********@mindprod.com.invalidwrites:
是否有一种快捷方式来定义要应用于所有样式的默认字体系列(以及
特征)?
Is there a shortcut way to define the default font family (and
characteristics) to be applied to all styles?
只需将其应用于顶级正文规则:
body {font:1em serif}
嵌套在body元素中的元素将继承其样式 - 这是CSS中C(对于Cascade)的
。
sherm--
-
我的博客: http://shermspace.blogspot.com
Perl中的Cocoa编程: http://camelbones.sourceforge.net
Scripsit Sherman Pendley:
Scripsit Sherman Pendley:
Roedy Green< se ********* @ mindprod.com.invalidwrites:
Roedy Green <se*********@mindprod.com.invalidwrites:
>有快捷方式吗?定义要应用于所有样式的默认字体系列(和
特征)?
>Is there a shortcut way to define the default font family (and
characteristics) to be applied to all styles?
只需将它应用于顶级正文规则:
body {font:1em serif}
Just apply it to the top-level body rule:
body { font: 1em serif }
这个问题可能是指浏览器默认字体系列。什么
让你认为它是一个serif字体,它是关键字serif的字体对应
?提示:你没有理由这样做,
The question presumably refers to browser default font family. What
makes you think it is a serif font and that it is the font corresponding
to the keyword serif? Hint: You have no grounds for that,
嵌套在body元素中的元素将继承它的样式 - 那是'/ b $ b $ C (对于Cascade)在CSS中。
Elements nested in the body element will inherit its styles - that''s
the C (for Cascade) in CSS.
你不明白C在CSS中。大多数其他作者都没有,
但这是一个很好的理由,在你有线索之前不要在公共场合提供关于CSS的建议
。
>
例如,看一下< inputelement的渲染。
正确的答案是最好的人们可以做的是
* {font-family:inherit!important; }
但这个
a)不支持IE
b)对使用!重要武器的样式表无效
。
-
Jukka K. Korpela(Yucca)
http://www.cs.tut.fi/~jkorpela/
You don''t understand the "C" in "CSS". Neither do most other authors,
but this is a good reason to refrain from giving advice on CSS in public
before you have a clue.
Look at the rendering of an <inputelement for example.
The correct answer is that the "best" one can do is
* { font-family: inherit !important; }
but this
a) isn''t supported by IE
b) is ineffective against style sheets that use the !important weapon
too.
--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/
" Jukka K. Korpela" < jk ****** @ cs.tut.fiwrites:
"Jukka K. Korpela" <jk******@cs.tut.fiwrites:
Scripsit Sherman Pendley:
Scripsit Sherman Pendley:
> Roedy Green< se ********* @ mindprod.com.invalidwrites:
>Roedy Green <se*********@mindprod.com.invalidwrites:
>>有快捷方式吗?定义要应用于所有样式的默认字体系列(和
特征)?
>>Is there a shortcut way to define the default font family (and
characteristics) to be applied to all styles?
只需将它应用于顶级正文规则:
body {font:1em serif}
Just apply it to the top-level body rule:
body { font: 1em serif }
这个问题可能是指浏览器默认字体系列。什么
让你认为它是一个衬线字体,它是与关键字serif相对应的字体
?提示:你没有理由支持
,
The question presumably refers to browser default font family. What
makes you think it is a serif font and that it is the font
corresponding to the keyword serif? Hint: You have no grounds for
that,
我认为没有这样的事情。提示:你没有理由相信自己是精神上的。
I think no such thing. Hint: You have no grounds for believing
yourself to be psychic.
>元素嵌套在body元素将继承其样式 - 这是CSS中的C(对于Cascade)。
>Elements nested in the body element will inherit its styles - that''s
the C (for Cascade) in CSS.
你不明白C在CSS中。大多数其他作者都没有,
但这是一个很好的理由,在你有线索之前不要在
公开上提供关于CSS的建议。
You don''t understand the "C" in "CSS". Neither do most other authors,
but this is a good reason to refrain from giving advice on CSS in
public before you have a clue.
你不懂基本礼仪。这是一个很好的理由,在你有线索之前不要与别人说话。
You don''t understand basic manners. This is a good reason to refrain
from speaking to others before you have a clue.
正确的答案是最好的 ;人们可以做的是
* {font-family:inherit!important; }
但这个
a)不支持IE
b)对使用!重要武器的样式表无效
也是。
The correct answer is that the "best" one can do is
* { font-family: inherit !important; }
but this
a) isn''t supported by IE
b) is ineffective against style sheets that use the !important weapon
too.
所以,你的正确答案是对于将访问网站的70-80%的真实用户来说,这是不会有效的?典型的象牙塔废话 - 和
正是我对你的期望。
* plonk *
sherm--
-
我的博客: http://shermspace.blogspot.com
Perl中的Cocoa编程: http://camelbones.sourceforge.net
这篇关于字体默认的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!