Remove HTML canvas border

后端 未结 2 958
隐瞒了意图╮
隐瞒了意图╮ 2021-01-15 17:58

I\'m customising my homepage http://geotheory.co.uk/ with an interactive animation, but having trouble making it feel more seemeless in the page. I want to remove the animat

2条回答
  •  不思量自难忘°
    2021-01-15 18:26

    Add margin: 0; to the body tag in your css, and display: block; to the canvas tag in your css.

    Example:

    canvas {
        display:block;
    }
    
    body {
        margin:0;
    }
    

提交回复
热议问题