https://stackoverflow.com/questions/9878090/eliminate-ghost-margin-below-html5-canvas-element
Eliminate ghost margin below HTML5 canvas element?
When we create an HTML5 canvas element, a ghost margin appears below the canvas element even though we set the margin and padding to 0. Example: http://jsfiddle.net/yvbmd/ We tried a variety of t...
stackoverflow.com
이런상황임
이건 그냥 canvas가 기본이 block 요소가 아닌 inline요소 여서 그럼 display: block 하던가 아니면
저기 답글 처럼 하면 됨.
'Dev > web' 카테고리의 다른 글
[angular] constructor-vs-ngoninit (0) | 2019.12.02 |
---|---|
[css] 레이아웃 잡을 때 참고했던 링크들 (0) | 2019.12.02 |
[javascript] ghost margin in canvas (0) | 2019.12.02 |
[angular] 8.0 버전 explorer 11 안뜸 (0) | 2019.12.02 |
[angular] 서비스를 모듈로 만드는 이유 (0) | 2019.12.02 |
[javascript] Unable to preventDefault 에러 (0) | 2019.12.02 |