search

Home  >  Q&A  >  body text

About link and visited attributes

<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title> ;CSS style rules</title>
<style>
/*When link is not accessed*/
a:link{
color: black;
text-decoration: none ;
}
              a:visited{
                                                                use ’s         using       through   through ’’s ’ through ‐ ‐ ‐ ‐‐ ‐‐ ‐ ‐ ‐ ‐ ‐ to 150%; ##         font-wight:bolder;
font-size:200%;
color: pink;
text-decoration-line:underline;
text-decoration-color: darkgreen;
}
a:active{
        color: deeppink;
font-size:250%;
}
  </style>
</head>
< body>
<p >
<a href="http://www.php.cn" target="_blank" >php Chinese website welcomes you</a>
< ;/p>
</body>
</html>

Please help me look at this string of code. Why is it still red before clicking and still red after clicking, and it is not centered? Hover and click effects are normal, please give me a solution?

益伦益伦2534 days ago1221

reply all(2)I'll reply

  • 橘ふ丢孒

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

    <p align="center">
    <a href="#" >php Chinese website welcomes you</a>
    </p>

    Change the file name or open it in a different browser and see if it was red before clicking it

    reply
    0
  • 益伦

    You can change IE and it works fine. Maybe it was cached before.

    益伦 · 2017-12-10 19:35:33
  • Cancelreply