Removing dotted underline from linked img

旧时模样 提交于 2019-12-13 02:36:17

问题


I am tinker with a wordpress site and have gone and thrown in some of my own raw html via their virtual editor. The outcome is what I wanted, but there seems to be a blue dotted underline underneath each image. How can I remove this? I tried everything from text-decoration: none; to outline:0

Here is a working link to the site http://s513195336.onlinehome.us/


回答1:


add this css in style.css

.logoLinks a
{
 border: none;
}

this css overwrite your old css

style.css line 42

a {
  border-bottom: 1px dotted #3156A3;
}



回答2:


Have you tried:

a img { border:0; }

or

.logoLinks a img { border:0; }

?

I saw that you have border-bottom declared in all your a's. So try overwriting it.




回答3:


The under line is from

style.css:42
a {
  border-bottom: 1px dotted #3156A3;
}

just remove it or add a style to override it.



来源:https://stackoverflow.com/questions/21669271/removing-dotted-underline-from-linked-img

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!