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

119
Views
svg como valor de URL del cursor no se aplica

Quiero usar un svg para el ícono del cursor cuando los detalles requeridos coincidan

el svg que estoy usando (es decir, es png para cargar aquí) ingrese la descripción de la imagen aquí

 .apply-copy{ cursor: url('./icons/apply-format.svg'),auto; }

cómo estoy cambiando el cursor

 document.querySelector('.ck-editor__editable').classList.add('apply-copy');
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Aquí hay un ejemplo para aplicar el cursor especial a la segunda clase .item .

Es posible que su código funcione ... pero asegúrese de que la ruta de su imagen sea la url('./icons/apply-format.svg')

 document.getElementsByClassName('item')[1].classList.add('cursor');
 .item{ padding: 10px; background: #f5f5f5; border: 1px solid #ddd; margin: 5px auto; max-width: 150px; text-align: center; cursor: default; } .cursor{ cursor: url('https://i.stack.imgur.com/ehitY.png'), auto; }
 <div class="item">something</div> <div class="item">something</div> <div class="item">something</div>

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!