a标签去掉点击后的颜色和下划线,html超链接更改颜色或取消颜色代码 去掉点击a标签下划线代码
/*包含以下五种的链接*/ a { text-decoration: none; } /*正常的未被访问过的链接*/ a:link { text-decoration: none; } /*已经访问过的链接*/ a:visited { text-decoration: none; } /*鼠标划过(停留)的链接*/ a:hover { text-decoration: none; } /* 正在点击的链接,鼠标在元素上按下还没有松开*/ a:active { text-decoration: none; } /* 获得焦点的时候 鼠标松开时显示的颜色*/ a:focus { text-decoration: none; } /* 可一次性设置样式*/ a:hover, a:visited, a:link, a:active { color: black; text-decoration: none; }