How remove border around image in css?

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

    Try this:

    img{border:0;}
    

    You can also limitate the scope and only remove border on some images by doing so:

    .myClass img{border:0;}
    

    More information about the border css property can by found here.

    Edit: Changed border from 0px to 0. As explained in comments, px is redundant for a unit of 0.

提交回复
热议问题