Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的页面上有喜欢使用的图像<a href=""><img><\a> ,当它们以 chrome 和 firefox 显示时它们工作正常,但在 IE 上,它们在图像周围有一个紫色环,任何想法为什么会这样
<a href=""><img><\a>
That's a border, IE puts borders around images in links, use a img{border:none} to remove it.
a img{border:none}
for images border: 0px;outline: 0px; bye good luck
border: 0px;outline: 0px;
您需要在 IE 中删除链接的边框。这最好用a img { border: none}
a img { border: none}