当a标签中放入图片的时候,通常默认图片就会有个蓝色的边框,如果我们不想要此边框,加入下面的样式:
border-top-width: 0px;
border-right-width: 0px;
border-bottom-width: 0px;
border-left-width: 0px;
border-top-style: none;
border-right-style: none;
border-bottom-style: none;
border-left-style: none;
我们想按自己的想法设置a标签的颜色时,加入下面的样式:
a:link {color: #ccffff} /* 未访问的链接 */
a:visited {color: #ccffff} /* 已访问的链接 */
a:hover {color: #ccffff} /* 鼠标移动到链接上 */
a:active {color: #ccffff}
本文介绍如何通过CSS去除a标签内的图片边框,并设置了统一的链接颜色。
675

被折叠的 条评论
为什么被折叠?



