静态页面的 A 链接 样式

来源:百度知道 编辑:UC知道 时间:2024/06/21 23:28:10
<html>
<head>
<title>欢迎光临</title>
<META http-equiv=Content-Type content="text/html; charset=gb2312">

<style type="text/css">
A {
COLOR: #333;
}
A:hover {
COLOR: #333; position: relative; top: 1px;
}
</style>
</head>
<body style="text-align:center; ">
<p><a href="#" >欢迎光临 1</a></p>
<p><a href="#" >欢迎光临 2</a></p>
</body>
</html>

怎样修改上面的链接 :
第一个鼠标放上去动,另一个不动?

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>

<style type="text/css">
.A1 {
COLOR: #333;
}
.A1:hover {
COLOR: #333; position: relative; top: 1px;
}
</style>
</head>
<body style="text-align:center; ">
<p><a href="#" class="A1" >欢迎光临 1</a><a href="#" >欢迎光临 2</a></p>
</body>
</html>