a伪类
2016-03-23 00:00
316 查看
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>a标签伪类</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="description" content="布尔教育 http://www.itbool.com" />
<style>
a:link{
color: gray;
}
a:visited{
color: green;
}
a:hover{
color: orange;
}
a:active{
color: black;
}
</style>
</head>
<body>
<p>a标签的四种状态称为伪类 <p>
<p>--link--常规状态----visited点击过的 --hover是指鼠标放上去的状态----active点击的一瞬间(一般不写) </p>
<p>有顺序 LVHA ,,,a link可以简写为a</p>
<div>
<a href="#">空标签</a>
<a href="#">空标签</a>
<a href="#">空标签</a>
<a href="#">空标签</a>
</div>
</body>
</html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>a标签伪类</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="description" content="布尔教育 http://www.itbool.com" />
<style>
a:link{
color: gray;
}
a:visited{
color: green;
}
a:hover{
color: orange;
}
a:active{
color: black;
}
</style>
</head>
<body>
<p>a标签的四种状态称为伪类 <p>
<p>--link--常规状态----visited点击过的 --hover是指鼠标放上去的状态----active点击的一瞬间(一般不写) </p>
<p>有顺序 LVHA ,,,a link可以简写为a</p>
<div>
<a href="#">空标签</a>
<a href="#">空标签</a>
<a href="#">空标签</a>
<a href="#">空标签</a>
</div>
</body>
</html>
相关文章推荐
- php数组的几个函数和超全局变量
- python检测xen下虚拟机的状态
- css初始化代码 以及background的使用
- 当网页太多时,用锚点 以及超链接的使用
- img的属性 和表单操作
- 内联元素与块状元素 注意字体和 内联元素无法更改高和宽
- 表格的制作 有序和无序
- html中特殊字符的表示
- 引入css的四种方式
- mysql copy复制拷贝表数据及结构的几种方式(转)
- Gitweb 安装与配置
- poj 1201 intervals
- 万年历的编写(java)
- IE8中javascript trim方法失效
- jQuery 层次选择器
- ubuntu15.10 wifi自动断线问题
- eclipse 打开文件所在文件夹插件OpenExplorer
- Java中HashMap和HashTable区别
- daily questions
- Linux 命令收集