图片链接样式

来源:百度知道 编辑:UC知道 时间:2024/07/03 00:56:46
CSS里面定义了下面的链接样式,但是图片链接的时候也自动运用了.想把图片的链接样式去掉.怎么做?谢谢了.
a:link {
font-size: 9pt;
line-height: 23px;
color: #666666;
text-decoration: none;
padding-right: 5px;
padding-left: 5px;
}
a:visited {
font-size: 9pt;
line-height: 23px;
color: #666666;
padding-bottom: 1px;
text-decoration: none;
}
a:hover {
font-size: 9pt;
line-height: 23px;
color: #0B850E;
padding-bottom: 1px;
text-decoration: none;
}
a:active {
font-size: 9pt;
line-height: 23px;
color: #666666;
padding-bottom: 1px;
text-decoration: none;
}
还是不行啊,麻烦了,加我QQ469841285

你需要给你的图片链接定义更为具体的样式,例如
在你的样式下面添上
a img {
padding: 0;
border: none;
}
总之,在大括号里面写上一些归零作用的样式,试试看吧~