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

107
Views
HTML Canvas Graphics Algunas cosas no funcionan

Este texto es una tontería, por favor evite esto. Por favor, concéntrese en la última línea de este párrafo. Gracias Nota: siempre especifique un atributo de identificación (al que se hará referencia en un script) y un atributo de ancho y alto para definir el tamaño del lienzo. Para agregar un borde, use el atributo de estilo.

HTML Canvas Graphics Este código no me funciona, cualquiera puede solucionar este error.

 <html> <body> <canvas id="myCanvas" width="200" height="100" style="border:1px solid #d3d3d3;"> Your browser does not support the HTML canvas tag.</canvas> <script> var c = document.getElementById("myCanva"); var ctx = c.getContext("2d"); var grd = ctx.createRadialGradient(75,50,5,90,60,100); grd.addColorStop(0,"red"); grd.addColorStop(1,"white"); ctx.fillStyle = grd; ctx.fillRect(10,10,150,80); </script> </body> </html>
about 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Creo que esto se debe a que la identificación del lienzo que llama myCanvas no es la misma que su getElementById , y tiene la identificación myCanva . Estoy seguro de que esto no es intencional y funciona de mi parte si cambia myCanva a myCanvas .

about 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!