在页面中使用的HTML标签,其中某些标签包含默认的外边距需要我们对其进行重置,以便于保证样式的统一。
css reset :
body,dl,dd,p,h1,h2,h3,h4,h5,h6{margin:0;font-size:12px;}
ol,ul{margin:0;padding:0;list-style:none;}
a{text-decoration:none;}
img{border:none;}
有的用*进行来进行配置,不过这样会影响页面的自身性能,虽然写起来会比较简单。