All browsers have built-in CSS by default, which is why the page does not display correctly. You need to add reset.css http://cssreset.com/
or add css code to disable the default browser behavior, for example:
body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,textarea,p,blockquote,th,td { margin:0; padding:0; } html,body { margin:0; padding:0; } table { border-collapse:collapse; border-spacing:0; }
source share