日期:2014-05-17  浏览次数:20553 次

请问,下面这个事什么选择器
<html>
<head>
<style type="text/css">
a:link, a:visited
{
border-style: solid;
border-width: 5px;
border-color: transparent;
}
a:hover {border-color: gray;}
</style>
</head>
<body>
<a href="#">AAA</a>
<a href="#">BBB</a>
<a href="#">CCC</a>
</body>
</html>


问题:
红色字体是什么模式的选择器呢?即不是元素选择器,不是类选择器,也不是ID选择器
是什么选择器 ?

------解决方案--------------------
a表示页面上所有的a标签
http://www.w3schools.com/cssref/sel_visited.asp
------解决方案--------------------
是 a 标签的伪类。
------解决方案--------------------
你就当成元素选择器。
------解决方案--------------------
属于伪类吧!
------解决方案--------------------
http://www.w3cschool.cn/css_reference.html#pseudoclasses
伪类选择器