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

121
Vistas
How to extract inline-tag styles from an html?

I have an html page with some <style>/*I need to extract this*/</style> and how can I extract that styles and get html without styles?

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

I would suggest you you use all:initial or all:unset so that you could make the element use default style.

I don't think you could create variable for the class, but you could use classList.add and classList.remove to switch.

document.querySelector('button').onclick= function(){
document.body.classList.add("nostyle");
this.classList.add('nostyle');

}
.nostyle{
all:revert;
}
body{
background:black;

}
button{
color:white;
background:black;
}
<button >Remove</button>

about 4 years ago · Juan Pablo Isaza Denunciar
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