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

109
Vistas
Is there a way to apply css class only to the current element without affecting it's children or content?
     <q-carousel-slide
       class="black-bg"
       :name="1"
       img-src="https://cdn.quasar.dev/img/mountains.jpg"
     >
       <div class="text-h5 text-white">Lacak Posisi Anda</div>
     </q-carousel-slide>

I want to apply class black-bg only to q-carousel-slide without affecting the div.

about 4 years ago · Santiago Gelvez
1 Respuestas
Responde la pregunta

0

If the div has a transparent or translucent background, or if it inherits its background from its parent, then nothing you can do to the q-carousel-slide element will change that.

If the stylesheet (or JavaScript) has rules which target descendants or children of elements which are members of a particular class, then nothing you can do to the HTML will change that.

(Obviously, moving the div so it to somewhere where it won't be affected by the above would work, but I doubt that's an option for you).

about 4 years ago · Santiago Gelvez 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