鼠标放在文章标题上,下划线改变颜色

来源:互联网 发布:java培训机构排名 编辑:程序博客网 时间:2024/05/16 09:36


鼠标放在文章标题文字上,下划线变色

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<style>
#aa{
    text-decoration:none;
    }
#aa:hover{
    border-bottom:5px solid #d52525;
    }
</style>
</head>

<body>
<h1><a href="#" id="aa">文章标题</a></h1>
<p>这里是文章段落。。。。。。。。。。。。。。。。。。。。。。。。</p>
</body>
</html>






0 0