主题:请教一个css控制带超链接图片边框的问题.
各位大虾,我写了个css来控制图片链接的属性的,本来我的想法是让带超链接的图片不显示边框(没加链接的时候是看不到边框的),可是不起作用,有超链接的图片都会有个有色的边框的.
我的css是这样写的:
a.r1:link {
text-decoration: none; color:;
}
a.r1:visited {
text-decoration: none; color:;
}
a.r1:hover {
text-decoration: none; color:F;
}
a.r1:active {
color:; text-decoration:;
}
上面是一个独立的css文件,应该没定义错吧!
然后我在另外一个页面test.htm的一个图片链接引入这个css文件,
<link href="test_css_1.css" type="text/css" rel="stylesheet" />
之后图片链接是这样写的.
<td width="200"><a href='#' class="r1"><img src="images/picfiles/01.JPG" width="100" height="150" class="r1"></a></td>
不知道为什么就是有个边框把图片框住,请各位指教.
我的css是这样写的:
a.r1:link {
text-decoration: none; color:;
}
a.r1:visited {
text-decoration: none; color:;
}
a.r1:hover {
text-decoration: none; color:F;
}
a.r1:active {
color:; text-decoration:;
}
上面是一个独立的css文件,应该没定义错吧!
然后我在另外一个页面test.htm的一个图片链接引入这个css文件,
<link href="test_css_1.css" type="text/css" rel="stylesheet" />
之后图片链接是这样写的.
<td width="200"><a href='#' class="r1"><img src="images/picfiles/01.JPG" width="100" height="150" class="r1"></a></td>
不知道为什么就是有个边框把图片框住,请各位指教.