How remove border around image in css?

后端 未结 14 2533
后悔当初
后悔当初 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:49

    I faced similar problem with img tag I had added following line with img tag.

    
    

    And this is the css class

    .my-class{
        background-image: url('add.gif');
        background-repeat: no-repeat;
        display: inline-block;
        width: 27px;
        height: 27px;
    }
    

    I changed the img tag to span tag with same css class. Border is not visible now.

    
    

提交回复
热议问题