html,body,div,ul,ol,li,dl,dt,dd,h1,h2,h3,h4,h5,h6,pre,form,p,blockquote,fieldset,input {
margin: 0;
padding: 0;
}
h1,h2,h3,h4,h5,h6,pre,code,address,caption,cite,code,em,strong,th {
font-size: 1em;
font-weight: normal;
font-style: normal;
}
ul,ol { list-style: none; }
fieldset,img { border: none; }
caption,th { text-align: left; }
table { border-collapse: collapse; border-spacing: 0; }
很多浏览器有自己独特的默认样式,显示的效果会有差异 , 上面是苹果官网上的reset.css 感觉用起来还不错
本文介绍了一种常用的CSS Reset样式方案,旨在消除不同浏览器之间的默认样式差异。通过将一系列元素的外边距、内边距、字体大小等设置为统一值,确保了网页布局的一致性和简洁性。
1011

被折叠的 条评论
为什么被折叠?



