与星共舞20141228:有谁知道 鼠标悬停在链接上时,按压文字效果怎么写的?? (css)

来源:百度文库 编辑:查人人中国名人网 时间:2024/05/02 22:43:53

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
<style type="text/css">
<!--
a:link {
color: #0099FF;
text-decoration: none;
}
a:visited {
text-decoration: none;
color: #666666;
}
a:hover {
position:relative;
top:1px;
left:1px;
text-decoration: none;
color: #FF0000;
}
a:active {
text-decoration: none;
color: #FF0000;
}
body,td,th {

font-size: 12px;
}
body {
background-color: #330000;
}
-->
</style></head>

<body>
<a href="#">按压文字</a><br>
<a href="#">按压文字</a>
<br>
<a href="#">按压文字</a>
</body>
</html>