html5 当鼠标放在超链接上时变色显示下划线,不放时不显示下划线颜色为黑色。

如题所述

第1个回答  2017-07-06
鼠标未移入时:a{color:#000; text-decoration:none;}
鼠标移入时:a:hover{color:#ff6c21; text-decoration:underline;}
第2个回答  2017-07-06
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<style type="text/css">
a{ 
text-decoration:none; 
color:#333; 
}
a:hover{color:red;text-decoration:underline}
</style>
<body>
<a href="" >1234/a>
</body>
</html>

第3个回答  2017-05-02
a{ text-decoration:none;color: #000; }
    a:hover{ text-decoration:underline;color: #FF5907; }

本回答被提问者采纳
第4个回答  2017-07-06

a{ text-decoration:none;color: #000; }
    a:hover{ text-decoration:underline;color: #FF5907; }

第5个回答  2017-05-02
设置一个默认的颜色,使用hover就可以了,颜色自己去设置
相似回答