<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>新闻导航案例</title>
<style>
/* a:link{
background-color: black;
color: white;
}
a:visited{
background-color: black;
color: white;
}
a:hover{
background-color: red;
color: white;
}
a:active{
background-color: red;
} */
/* 简洁写法 */
a{
background-color: black;
color: white;
}
a:hover{
background-color: red;
}
.f{
background-color: red;
}
</style>
</head>
<body>
<a href="" class="f">首页</a>
<a href="">国内</a>
<a href="">国际</a>
<a href="">军事</a>
<a href="">财经</a>
</body>
</html>
htm css实现新闻导航案例
最新推荐文章于 2023-09-25 23:45:43 发布