html,body,div,span,applet,object,iframe,
h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,
var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,
form,label,legend,table,caption,tbody,tfoot,thead,
tr,th,td,article,aside,canvas,details,embed,figure,
figcaption,address,big,cite,code,del,dfn,em,img,ins,
kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,
i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,table,
caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,
details,embed,figure,figcaption,footer,header,hgroup,
menu,nav,output,ruby,section,summary,time,mark,audio,
video{
margin: 0;
padding:0;
border: 0;
font-size: 100%;
font: inherit;
vertical-align: baseline;
}
article,aside,details,figcaption,figure,footer,header,
hgroup,menu,nav,section{
display: block;
}
body {
line-height: 1;
box-sizing:border-box;
}
q {
quotes: none;
}
blockquote::before,blockquote::after,q:before,q:after {
content: '';
content: none;
}
table{
border-collapse: collapse;
border-spacing: 0;
}
a{
text-decoration: none;
color: inherit;
}
html 重置css样式代码
于 2023-06-19 23:32:42 首次发布
这段代码是一个常见的CSSreset,用于消除不同浏览器之间的默认样式差异。它设置了一系列HTML元素的margin,padding,border为0,确保元素的起点一致,同时处理了如line-height,font-size,quotes等其他样式,以提高布局的一致性和可预测性。
摘要由CSDN通过智能技术生成