加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 资源网站 > 资源 > 正文

html – Internet Explorer显示与彩色边框的图像链接

发布时间:2020-12-14 21:39:46 所属栏目:资源 来源:网络整理
导读:我有以下CSS代码链接: a { text-decoration: none; color: #248AC9;}a:hover { color: #8DCFF7;} 问题在于,在Internet Explorer中,图像具有与“color”相同颜色的奇怪边框。如何解决这个问题,并正确绘制图像。 HTML代码很简单: a href =“calculator-op
我有以下CSS代码链接:
a {
    text-decoration: none;
    color: #248AC9;
}

a:hover {
    color: #8DCFF7;
}

问题在于,在Internet Explorer中,图像具有与“color”相同颜色的奇怪边框。如何解决这个问题,并正确绘制图像。 HTML代码很简单:
< a href =“calculator-operators.htm”>< img src =“img / link.png”/>< / a>

那么我该怎么解决这个问题呢?

解决方法

只为图像指定无边框:
a > img{
    border: 0;
}

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读