How to change the background color of an image?

-1

I need to change the white background color of images using programming. Does anyone know how to proceed?

    
asked by anonymous 25.05.2016 / 15:43

1 answer

1

Try this

<img class="suaclasse" src...>

css

img.suaclasse {
  background-color: rgba(0,0,0,0); // ou uma cor que você preferir.
}
    
25.05.2016 / 16:17