Oct 6

CSS中的标点符号 不指定

双引号 ""

1、同时调用多个class样式,class名称之间用空格分开,两个样式同时起作用。

a.red  { color: #FF3131; }
a.xhx  { text-decoration: underline; }

<a class="red xhx" herf="#"></a> 

2、在font-family设定字体时,用于定义字体族名称。

如,font-family : "Lucida Grande", Verdana, 宋体;

逗号 ,

1、用于分隔css属性参数。如字体定义,并行定义,按序取值:

Font: Tahoma, Verdana, Lucida, Arial, 宋体, sans-serif;

2、一次同时定义多个标签,赋相同的属性:

h1, h2, h3, h4, h5, h6  {
        font-size: medium;
}

分号 ;

用于一个CSS定义语句的结束。

斜扛 /

在font缩写“字号与行距”定义中出现。

font: 12px/150% bold italic;

[原文地址]http://www.zfnn.com/post/350.html

Tags: ,
发表评论
表情
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
打开HTML
打开UBB
打开表情
隐藏
记住我
昵称   密码   游客无需密码
网址   电邮   [注册]