Create links in HTML canvas

前端 未结 5 590
终归单人心
终归单人心 2020-11-29 21:49

Is it possible to create html links out of text that is rendered in a canvas element?

5条回答
  •  臣服心动
    2020-11-29 22:20

    "I think another easy idea is to put a div at the position where you want the link to appear on the canvas and put your link at the div. All you will have to do is to position and style the div correctly." -Shamaila Tahir

    I personally like the idea of using links on top of the canvas and here is a full page sized canvas example. You could use this example for many things, and not just the canvas, so why not get comfortable with it. `

        
    
    Kewl!! Buttons and Links with Canvas
    
    Your browser does not support the HTML 5 Canvas.
    
     
    Send a message
    
    
    ``
    

提交回复
热议问题