Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

112
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda