html链接去下划线
来源:百度知道 编辑:UC知道 时间:2024/06/08 08:19:04
<a style="text-decoration:none" href="ns1.html"><img src="a1.jpg" width="52" height="52" onMouseOver="this.src='hz2.gif'" onMouseOut="this.src='a1.jpg'"></a>
图片周围还是有一圈下划线 ,去不掉= =
下面的都试了还是有
图片周围还是有一圈下划线 ,去不掉= =
下面的都试了还是有
图片加链接要设置他的border="0"才会没有框!<img src="" border="0"/>
楼主是说点击之后图片周围有一圈虚框吧,试试这样
在<style></style>里加上
a,area { blr:expression(this.onFocus=this.blur()) } /* for IE */
:focus { outline: none; } /* for Firefox */
通过css代码实现
<style type="text/css">
<!--
a:link {
text-decoration: none;
}
a:visited {
text-decoration: none;
}
a:hover {
text-decoration: none;
}
a:active {
text-decoration: none;
}
-->
</style>
样式中有一个属性,underline