关于link和visited属性
益伦
益伦 2017-12-06 22:31:06
0
2
1175

<!doctype html>
<html lang="en">
<head>
   <meta charset="UTF-8">
   <title>CSS样式规则</title>
   <style>
/*link未访问的时候*/
a:link{
          color: black;
text-decoration: none;
}
       a:visited{
           color:red;
font-size:150%;
text-align: center;
}
       a:hover{
           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中文网欢迎您</a>
</p>
</body>
</html>

大家帮我看下这串代码,怎么点击之前也是红色,点击之后还是红色,也不居中,悬停和点击效果正常,求解?

益伦
益伦

全部回复(1)
橘ふ丢孒

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

改个文件名或者换个浏览器再打开看看点击之前是不是红色

  • 回复 可以换了ie正常,可能是之前点过缓存了
    益伦 作者 2017-12-10 19:35:33
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责声明 Sitemap
PHP中文网:公益在线PHP培训,帮助PHP学习者快速成长!