yahoo css reset

来源:互联网 发布:华瑞网研域名多少钱 编辑:程序博客网 时间:2024/05/16 01:52

Yahoo(YUI) CSS Reset:

body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre, 

form,fieldset,input,textarea,p,blockquote,th,td { 
    padding: 0; 
    margin: 0; 

table { 
    border-collapse: collapse; 
    border-spacing: 0; 

fieldset,img { 
    border: 0; 

address,caption,cite,code,dfn,em,strong,th,var { 
    font-weight: normal; 
    font-style: normal; 

ol,ul { 
    list-style: none; 

caption,th { 
    text-align: left; 

h1,h2,h3,h4,h5,h6 { 
    font-weight: normal; 
    font-size: 100%; 

q:before,q:after { 
    content:”; 

abbr,acronym { 
    border: 0; 

}


css reset的原因:html标签在浏览器中有默认的样式,不同浏览器的默认样式间有差别,重新定义标签默认样式,覆盖浏览器的css默认属性。

0 0
原创粉丝点击