Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

132
Views
Hover no reacciona

Mi hover no funciona en absoluto. Necesito que mi elemento solo aparezca cuando paso el mouse sobre él, pero no puedo hacer que funcione.

No sé si es necesario reemplazar la etiqueta i con una a , o si el error está en el css. También probé con display: none y display: block , pero el problema aún no se resuelve. ¿Qué puede ser?

Mi html:

 <div class="vertical-line"></div> <div> <h4>{{ banner.textPrimary }}</h4> </div> <div> <h2>{{ banner.textSecondary }}<br /></h2> </div> <div class="vertical-line"></div> <div> <a href="{{ banner.buttonLink }}" target="_blank"> <button [style.background-color]="banner.buttonColor" style="border: solid 1px" class="btn-about-us" mat-raised-button color="primary" > {{ banner.buttonText }} </button> </a> </div> </div> <i (click)="openBannerDeleteModal(banner.uuid)" *ngIf="isAdminFlag === 'true'" class="fas fa-trash-alt delete-modal" id="banner-delete" aria-hidden="true" ></i>

Y mi CSS:

 .delete-modal{ cursor: pointer; position: absolute; bottom: 80%; left: 91%; z-index: 1000; visibility: hidden; } .delete-modal:hover{ visibility: visible; }
about 4 years ago · Juan Pablo Isaza
2 answers
Answer question

0

Para visibility: hidden; hover no funciona y es un comportamiento normal.
Creo que en tu caso la opacity sería mejor.

 .delete-modal { ... opacity: 0; } .delete-modal:hover { ... opacity: 1; }
about 4 years ago · Juan Pablo Isaza Report

0

no puede pasar el cursor sobre algo que no está visible en su página, de esa manera su evento de desplazamiento no se dispara en absoluto,

en su lugar, coloque el cursor sobre el padre, luego haga visibilty: visible en el elemento deseado.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!