How remove border around image in css?

后端 未结 14 2395
后悔当初
后悔当初 2020-11-29 09:46

I try to display a span when the cursor of the mouse is on a help icon.

It works, but nevertheless, I don\'t manage to remove the border around the icon.

My

相关标签:
14条回答
  • 2020-11-29 10:25

    maybe add border:none to under a.info:hover span or text-decoration:none

    0 讨论(0)
  • 2020-11-29 10:27

    I usually use this on the top of css file.

    img {
       border: none;
    }
    
    0 讨论(0)
  • 2020-11-29 10:31

    Another thing - remember that if you have an with an empty src attribute, then none of these suggestions will work, a border will still get shown.

    <img src="" style="width:30px;height:30px;">
    
    0 讨论(0)
  • 2020-11-29 10:31

    it's a good idea to use a reset CSS. add this at the top of your CSS file

    img, a {border:none, outline: none;}
    

    hope this helps

    0 讨论(0)
  • 2020-11-29 10:32

    Here's how I got rid of mine:

    .main .row .thumbnail {
        display: inline-block;
        border: 0px;
        background-color: transparent;
    }
    
    0 讨论(0)
  • 2020-11-29 10:35
    <img id="instapic01" class="samples" src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"/>
    
    0 讨论(0)
提交回复
热议问题