CSS的问题???高手进来!!!

来源:百度知道 编辑:UC知道 时间:2024/06/16 00:19:16
<style type="text/css">
<!--
a:link { text-decoration: none;}
a:hover { position: relative; top:1px; left:1px;}
a:hover{onmouseover="window.status ='我的公司)' ;return true"}
-->
<div id="center">
a:link { text-decoration: none;color: white}
a:visited { text-decoration: none;color: white}
a:hover { text-decoration:none;color: red;position: relative; top:1px; left:1px;}
a:hover{onmouseover="window.status ='我的公司' ;return true"}
</div>
</style>

我用了这段代码,但是所有的连接都变了!高手帮帮忙!怎样让上下不一样!

老大,HTML代码都写错了!

div标签怎么放到 style中了?!!!!!
我就说打开什么都没有!
<style type="text/css">
<!--
a:link { text-decoration: none;}
a:hover { position: relative; top:1px; left:1px;}
a:hover{onmouseover="window.status ='我的公司)' ;return true"}
-->
</style> <!--应该在这里结束吧!!!!!-->

<body>
<div id="center">
<a href="#" title="#">链接!!!!</a>
</div>

</body>

换成这样吧。
<style type="text/css">
<!--
a:link { text-decoration: none;}
a:hover { position: relative; top:1px; left:1px;}
a:hover{onmouseover="window.status ='我的公司)' ;return true"}

#center a:link { text-decoration: none;color: white}
#center a:visited { text-decoration: none;color: white}
#center a:hover { text-decoration:none;color: red;positio