為什么我這個是鼠標(biāo)經(jīng)過的時候下劃線才消失?字體顏色也沒有改變。
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>3.1頁面頭部制作練習(xí)題</title>
<style type="text/css">
{
? ? margin:0;
? ? padding:0;
}
.top{
? ? width:400px;
? ? height:150px;
? ? background-color:grey;
}
.top_content{
? ? width:400px;
? ? margin:0 auto;
}
.top_content h3{
? ? float:left;
? ? width:80px;
} ? ?
.top_content li{
? ? display:block;
? ? float:right;
? ? width:70px;
? ? line-height:150px;
? ? margin:0 auto;
}
.top-content a:link,.top_content a:visited{
? ? color:purple;
? ? text-decoration:none;
}
.top_content a:hover,.top_content a:active{
? ? color:golden;
? ? text-decoration:none;
}
? ? /*在此定義相關(guān)樣式,控制列表的顯示形式*/
</style>
</head>
<body>
<div class="top">
? ? <div class="top_content">
<h3>課程難度</h3>
<ul>
? ? <li><a href="#">高級</a></li>
? ? <li><a href="#">中級</a></li>
? ? <li><a href="#">初級</a></li>
? ? <li><a href="#">全部</a></li>
</ul>
? ? </div>
</div> ??
2019-11-30
.top-content 這個類名寫錯了,中間的橫線不對