Performance of jquery selectors vs css3 selectors
问题 I am fairly new to css3 using selectors (or simple css selectors in general) and am curious about the performance comparison of these css selectors vs jquery or javascript selectors? Say you have something like this: css version #someID > div:nth-child(2n) { some css .... } jquery version (edit) $("#someID").children(":nth-child(even)").css({ some css ....}); Is it often faster to use the css selectors whenever you can, or use jquery selectors to adjust the css involved with an element or set