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

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

概述我有以下CSS代码链接: a { text-decoration: none; color: #248AC9;}a:hover { color: #8DCFF7;} 问题在于,在Internet Explorer中,图像具有与“color”相同颜色的奇怪边框。如何解决这个问题,并正确绘制图像。 HTML代码很简单: < a href =“calculator-ope 我有以下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;}
总结

以上是内存溢出为你收集整理的html – Internet Explorer显示与彩色边框的图像链接全部内容,希望文章能够帮你解决html – Internet Explorer显示与彩色边框的图像链接所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/web/1113213.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-05-29
下一篇2022-05-29

发表评论

登录后才能评论

评论列表(0条)

    保存