0
Someone knows how to identify, using javascript, only the css properties of a class, for example:
.in-text{
color: red;
font-weight: 500;
}
html
<label class="in-text">Digite um texto</label>
I tried this method, getComputedStyle(document.querySelector('.in-text'))
however I get many properties and not only from the in-text class
This is complex, it’s easier to know which styles a given element has. You can better explain what you want to do or what you need to know about that class?
– Sergio
See if that’s what you need, http://jsfiddle.net/HP326/6/, reply https://stackoverflow.com/questions/2952667/find-all-css-rules-that-apply-to-an-element
– abfurlan
@Sergio was studying the possibility of applying the rules of a css class inline in a style tag. Good to know that this is very complex.
– N. Dias
@abfurlan vlw by link, is a good basis for my searches.
– N. Dias