a:hover连接后让图片不动

来源:百度知道 编辑:UC知道 时间:2024/05/23 17:06:38
小弟在学习Dreamweaver中,遇到个问题.就是在用CSS给图片做链接后`
图片会动``
请个位精英给小弟解释一下``

<html
<head>
<title>文字连接动,图片连接不动</title>
<style type="text/css">
<!--
a:hover {
position: relative;
left: 1px;
top: 1px;
}
-->
</style>
</head>

<body>
<a href="http://www.baidueat.com">吃在中国</a>
<a href="http://www.baidu.com" style="position:static"><img src="http://www.baidu.com/img/logo-yy.gif" width="137" height="46" border="0" /></a>
</body>
</html>