Use a specific chooser for id
and add id
to your image.
<img id="imagem_especifica">
<style>
#imagem_especifica {
-webkit-filter: grayscale(100%);
filter: grayscale(100%);
}
</style>
The id
is used to reference only one object. If it is necessary to capture more than one element, but not all, I advise you to use class
.
See:
<style>
.imagem_especifica {
-webkit-filter: grayscale(100%);
filter: grayscale(100%);
}
</style>
When you use the id
attribute on an element, to reference it in Css, just use #
followed by id
name. The class
is the same, however you use .
before the name.