Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

174
Vistas
why does the values of some Element's property are not stored in the document object?

When I inspect a website,I can see all the styles that are applied to a particular Element in the Elements Tab,but when I try to access the "style" properties of that particular Element using the DOM API in the Console tab,I get an empty string as its value.

Example:

const ele = document.querySelector("#ddec");
console.log(ele.style.backgroundColor);

Output:

""

Does this only happen to the CSS propeties? Or Which properties will get stored in the "document" Object?

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda