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

496
Views
¿Cómo puedo cambiar la familia de fuentes de SweetAllert.js?

Tengo un problema al cambiar la familia de fuentes de una alerta dulce.

El guión está abajo:

 swal({ title: "Success!", text: "You created your team.That's amazing!", type: "success", timer: 2000, showConfirmButton: false }, function(){ window.location.href = "/generatelinkQR.php"; });

Hasta ahora he intentado cambiar el css con .swal2-popup pero no funcionó. ¿Alguna sugerencia? Gracias por tu tiempo.

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

0

Puede diseñar directamente .swal-modal que Sweet Alert utiliza para mostrar el cuadro de diálogo.

(He actualizado su código para usar la última versión de Sweet Alert, ya que parece que estaba usando una versión anterior).

 @import url('https://fonts.googleapis.com/css2?family=Kdam+Thmor+Pro&display=swap'); .swal-modal{ font-family: 'Kdam Thmor Pro', sans-serif; }
 <html> <head> <script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script> </head> <body> <script> swal({ title: "Success!", text: "You created your team.That's amazing!", icon: "success", timer: 2000, button: false }).then(value => { window.location.href = "/generatelinkQR.php"; }); </script> </body> </html>

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!