Home > Q&A > body text
为什么会多出3px?
大家讲道理2017-04-17 13:49:39
Because canvas is an inline replacement element by default, and the 3px is the distance between its baseline and the bottom of the line. Set his display to block to solve this problem.
canvas
display
block