猎空命中率多少合格:dreamweaver中有关css的问题

来源:百度文库 编辑:查人人中国名人网 时间:2024/05/02 17:48:19
1.把鼠标放在含有超连接的图片上,图片由静止的向底部一动。文字也同样。请问高手这是css的哪一个属性。
2。同样也是把鼠标放在超连接的文字上。文字马上出现底色。这又是用了什么属性。

把鼠标放在含有超连接的图片上,图片(文字)由静止的向底部动
用的代码是:
a:hover {
position: relative; left:1px; top:1px;
}
把鼠标放在超连接的文字上,文字马上出现底色用的代码是:
a:hover {
background-color:#00CCFF;
}
两个可以合起来用
a:hover {
position: relative; left:1px; top:1px;
background-color:#00CCFF;
}
还可以加别的效果!

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">

<style type="text/css">
<!--
a:link{ color:#003366;
text-decoration: none;}
a:visited{ color:#003366;
text-decoration: none;
}
a:hover{
color:#FF3300;
background-color: #e5e5e5;
right: 0px;
top: 2px ;
position: relative;
}
-->
</style>
</head>

<body >
<p>

<p><a href="#" class="unnamed1">dfgsdf</a>
</body>
</html>