<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<style type="text/css">
/*
伪类选择器:伪类选择器就是对元素处于某种状态下进行样式化的
注意:
1、a:hover 必须被置于 a:link和a:visited之后
2、a:active 必须被置于a:hover 之后
*/
a:link{color:#F00} /*没有被点击过-----红色//IE可以,谷歌不可以*/
a:visited{color:#0F0} /*已经被访问过的样式----绿色*/
a:hover{color:#00F;font-size:24px} /*鼠标经过的状态-----蓝*/
a:active{color:#FF0} /*点击并没有松开的时候*/
</style>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
</head>
<body>
<a href="#">百度</a>
</body>
</html>
伪类选择器
最新推荐文章于 2023-04-30 12:11:03 发布