在CSS中#wrap #header #navigation .active a:visited, active是什么意思

来源:百度知道 编辑:UC知道 时间:2024/05/31 04:56:29

#wrap/#header#navigation是用id调用的一种方式,id调用的方式是#名字,
.active是类样式也是一种调用方式,
a:visited是鼠标经过按钮的意思!
active是鼠标点击按钮的意思!
不清楚Q我,357763641

他们是CSS中不同的选择器!


1、#wrap{ ... ... }表示ID选择器(唯一选择)id 选择器以 "#" 来定义。

下面是id选择器实例

<html>
<head>
    <style>
        #red {color:red;}
        #green {color:green;}
    </style>
</head>
<body>
    <p id="red">这个段落是红色。</p>
    <p id="green">这个段落是绿色。</p>
</body>
</html>


2、.active   表示Class选择器(类选择器)在 CSS 中,类选择器以一个点号显示。

类选择器实例

<html>
<head>
    <style><