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

129
Views
Haga clic en una imagen para cargar el archivo en ReactJS

Estoy creando una aplicación de reacción en la que necesito hacer clic en una imagen que servirá como un botón para cargar un archivo. No puedo entender cómo usar una imagen como botón de entrada.

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

0

Probablemente la forma más fácil sería usar un elemento contenedor y CSS puro para eso. solo pon una imagen donde está el texto ahora.

 .wrapper{ display:inline-block; position:relative } .btnimg{ background:red; pointer-events:none; width:250px; height:90px; opacity:1; line-height:90px; text-align:center; } input[type=file]{ opacity:0; position:absolute; top:0; left:0; right:0; bottom:0; }
 <div class="wrapper"> <div class="btnimg">btn with image</div> <input type="file"> </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!