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

212
Views
Barra de navegación jQuery + Bootstrap: cómo resaltar el enlace cuando se visita

Por favor visite este enlace .

Intente hacer clic en el enlace "Portafolio", debe estar resaltado con un fondo azul.

Pero después de hacer clic fuera de la barra de navegación, se resaltará en azul.

 //scrolling $('nav a').on('click', function() { var scrollAnchor = $(this).attr('data-scroll'), scrollPoint = $('section[data-anchor="' + scrollAnchor + '"]').offset().top; $('body,html').animate({ scrollTop: scrollPoint }, 500); return false; }); //change color $(window).scroll(function() { var windscroll = $(window).scrollTop(); if (windscroll) { $('section').each(function(i) { if ($(this).position().top <= windscroll) { $('nav a.active').removeClass('active'); $('nav a').eq(i).addClass('active'); } }); } }).scroll();
over 4 years ago · Santiago Trujillo
2 answers
Answer question

0

Al igual que pasar el mouse, también se visita, donde puede asignar color a los enlaces visitados.

 a:visited { color: blue; }
over 4 years ago · Santiago Trujillo Report

0

Prueba esto

 nav a.active, nav a.active:hover { background-color: blue !important; }
over 4 years ago · Santiago Trujillo 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!