CSS语法帮助 [英] CSS syntax help

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

问题描述

这是什么意思?


字体:11px / 20px verdana,arial,helvetica,sans-serif;

What does this mean?

font: 11px/20px verdana, arial, helvetica, sans-serif;

推荐答案

Henry< ha *** @ netscape.com>写道:
Henry <ha***@netscape.com> wrote:
这是什么意思?

字体:11px


字体高度

/ 20px


行高

verdana,arial,helvetica,sans-serif;
What does this mean?

font: 11px
font height
/20px
line height
verdana, arial, helvetica, sans-serif;




首选字体列表

无头



list of preferred fonts
Headless


文章< 3f *********** ***********@news.optusnet.com.au> ;,亨利写道:
In article <3f**********************@news.optusnet.com.au>, Henry wrote:
这是什么意思?

字体:11px / 20px verdana,arial,helvetica,sans-serif;
What does this mean?

font: 11px/20px verdana, arial, helvetica, sans-serif;




相同


font-size:11px; line-height: 20px; font-family:verdana,arial,helvetica,

sans serif;

http://www.w3.org/TR/CSS2/fonts.html#font-shorthand


这也是非常糟糕的CSS规则的好例子:

a)11px对于大多数人来说太小了
http://www.xs4all.nl/~sbpoley/webmatters/fontsize.html

b) 20px不是相对于11px,而是绝对的,所以如果用户覆盖

字体大小,则行高保持不变。从不使用绝对尺寸

线高 - 你总是可以相对于字体大小计算它,并且

那么它就不那么糟了

c) Verdana不是很好的字体选择,因为它与

其他人太不一样了。指定任何其他字体都不好,而不是evn

plain sans-serif非常安全。只有conserns正文,你可以

在标题上尽可能多地使用它们.Google.groups为什么。


[1]当你做在随机行上有不同大小的文字或

你几乎不想要的东西。

-

Lauri Raittila< http:// www.iki.fi/lr> < http://www.iki.fi/zwak/fonts>

Saapi l?hett ?? meili?,jos aihe ei liity ryhm ?? n,tai on yksityinen

tjsp。,mutta?l? L·海特? samaa viesti? meilitse ja ryhm ?? n。



Same as

font-size:11px;line-height:20px;font-family:verdana, arial, helvetica,
sans serif;

http://www.w3.org/TR/CSS2/fonts.html#font-shorthand

It is also good example of very bad CSS rule:
a) 11px is too small for most people
http://www.xs4all.nl/~sbpoley/webmatters/fontsize.html
b) 20px is not relative to 11px, but absolute, so if user overrides
font size, line height stays. Never1 use absolute measure for
line height - you can always count it relative to font size, and
then it is not that bad
c) Verdana is not good choise of font, as it is too different from
others. Neither is it good to specify any other fonts, and not evn
plain sans-serif is really safe. Only conserns body text, you can
use them as much you like on headings etc. Google.groups for why.

[1] exept when you do have different size of text on random lines or
something else you hardly ever want.
--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
Saapi l?hett?? meili?, jos aihe ei liity ryhm??n, tai on yksityinen
tjsp., mutta ?l? l?het? samaa viesti? meilitse ja ryhm??n.


哦很酷....就像编写CSS一样。我知道它会显示verdana,arial,helvetica,sans-serif ....但11px / 20px

分数并不知道它是什么是的...感谢您的澄清。


我正在寻找其他一些CSS代码而且我遇到了这个:


第一个我们讨论过,我们很清楚:


p {

字体:11px / 20px verdana,arial,helvetica,sans-serif;

保证金:0px 0px 16px 0px;

填充:0px;

颜色:#FFF;

}


这对我来说有点混乱:


#内容> p {margin:0px;}

#Content> ; p + p {text-indent:30px;}

#content {

保证金:0px 50px 50px 210px;

填充:10px;

}


谢谢

Oh cool.... like a short hand of writing CSS. I knew about it would
display verdana, arial, helvetica, sans-serif.... but the 11px/20px
fraction didn''t have an idea what it was.... thanks for the clarification.

I was looking a some other CSS code and I came across this:

the first p we discussed and we are clear with that:

p {
font:11px/20px verdana, arial, helvetica, sans-serif;
margin:0px 0px 16px 0px;
padding:0px;
color: #FFF;
}

This is where it gets a bit confusing for me:

#Content>p {margin:0px;}
#Content>p+p {text-indent:30px;}

#content {
margin:0px 50px 50px 210px;
padding:10px;
}

thanks


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

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