1 2 3 4 5 6 7 8 9 10 11 12
<!DOCTYPE HTML> <html> <body> <canvas id="c" width="200" height="20" style="position:absolute; top:10.4px; left:0"></canvas> <script> var c = document.getElementById("c"); var ctx = c.getContext("2d"); ctx.fillStyle = "black"; ctx.fillRect(0, 0, 200, 1); </script> </body> </html>