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

299
Views
cuando hice clic en el botón, el color del borde cambia por defecto en color negro en html y css

Utilicé dos botones cuando hice clic en ese botón. Div debe cambiarse usando javascript. Reemplazó la función. El problema es que cuando hago clic en el borde del botón, debe cambiarse por el color negro predeterminado. No pude encontrar dónde se agregó que soy. añadiendo capturas de pantalla. sucedió después de que agregué la función de reemplazo de clic cuando hice clic en ese borde, el color es negro

 <script> function replace(hide, show) { document.getElementById(hide).style.display = "none"; document.getElementById(show).style.display = "block"; } </script>
 <div class="two_btn"> <div class="order_btn"> <button type="button" onclick="replace('div2','div1')">Order & Collect</button> </div> <div class="book_collection"> <button type="button" onclick="replace('div1','div2')">Book UK Collection</button> </div> </div>

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Es un esquema de enfoque, agregado automáticamente por su navegador. Para eliminarlo por completo (no recomendable), puedes agregar esto a tu CSS:

 button:focus { outline: none; }

Por qué no debería hacer esto y usar un enfoque diferente en su lugar:

https://www.a11yproject.com/posts/never-remove-css-outlines/

http://www.outlinenone.com/

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!