首頁  >  問答  >  主體

關於link和visited屬性

<!doctype html>
<html lang="en">
<head>
   <meta charset="UTF-8">
   <title> ;CSS樣式規則</title>
   <style>
/*link未訪問的時候*/
a:link{
          color: black;
text-decoration: none-decoration: none ;
}
       a:visited{
           color:red;
font-size:150%;
text-align: center;
#            font-wight:bolder;
font-size:200%;
color: pink;
text-decoration-line:underline;
text-decoration-color: darkgreen;

}
       a:active{
           color: deeppink;
font-size:250%;
}
   </style<#>#> body>
<p >
    <a href="http://www.php.cn" target="_blank" >php中文網歡迎您</a>
< ;/p>
</body>
</html>

大家幫我看下這串程式碼,怎麼點擊之前也是紅色,點擊之後還是紅色,也不居中,懸停和點擊效果正常,求解?

益伦益伦2484 天前1177

全部回覆(2)我來回復

  • 橘ふ丢孒

    橘ふ丢孒2017-12-07 11:09:13

    <p align="center">
        <a href="#" >php中文網歡迎您</a>
    </p>

    #改個檔名或換個瀏覽器再打開看看點擊之前是不是紅色

    #

    回覆
    0
  • 益伦

    可以換了ie正常,可能是之前點過快取了

    益伦 · 2017-12-10 19:35:33
  • 取消回覆