Company logo
  • Empleos
  • Bootcamp
  • Acerca de nosotros
  • Para profesionales
    • Inicio
    • Empleos
    • Cursos y retos
    • Preguntas
    • Profesores
    • Bootcamp
  • Para empresas
    • Inicio
    • Nuestro proceso
    • Planes
    • Pruebas
    • Nómina
    • Blog
    • Calculadora

0

84
Vistas
Javascript: selecting all elements that have a specific font-size or font-weight

in JavaScript, is there a way to select all elements that have a specific style, like a font size or font weight or color without using class or ID?

7 months ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

You could select all elements (querySelector("*")) then loop over the results testing the computedStyle.

Far from efficient, but the only way I can think of.

7 months ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos