css 的简单问题.

来源:百度知道 编辑:UC知道 时间:2024/05/16 16:59:09
.CommandButton
{
font-family: Verdana, Helvetica, sans-serif;
font-size: 11px;
font-weight: normal;
}

/* hyperlink style for buttons and link buttons used in the portal admin pages */
A.CommandButton:link
{
color: darkred;
}

A.CommandButton:visited
{
text-decoration: color: darkred;
}

A.CommandButton:active
{
text-decoration: color: darkred;
}

A.CommandButton:hover
{
text-decoration: color: red;
}

小弟刚学CSS,有很多不明白的地方,请多帮忙...呵呵.
.XXXX 与A.XXXX 与A.XXXX:XX 这个都是什么区别,谢谢.

.表示的是类,就是元素的class属性
:表示的是伪类,一共有四个伪类link,visited,hover和active
可以访问http://zh.html.net/tutorials/css/
了解更多CSS知识

就是选择器,说白了就是选择的范围不同
.XXXX 表示XXXX类
A.XXXX 表示具有XXXX类的A
A.XXXX:XX 表示具有XXXX类的A的AA状态;