Answer the question
In order to leave comments, you need to log in
How to apply a class only to the first child of an element in less?
On the less screen, property width:200px; applies to all divs in the "parent" class. Tell me how to apply the class in less not to all divs, but only to the first child "child_1"?
Answer the question
In order to leave comments, you need to log in
didn't use classList.add to add before, so I can't say, setAttribute class/className instead (latest for old IE)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question