目前比较全的CSS reset重设方法总结

2020-05-01 09:36:38易采站长站整理

    padding: 0;    
    border: 0;    
    outline: 0;    
    font-weight: inherit;    
    font-style: inherit;    
    font-size: 100%;    
    font-family: inherit;    
    vertical-align: baselinebaseline;    
}    
:focus {   
    outline: 0;   
}    
a, a:link, a:visited, a:hover, a:active{   
    text-decoration:none  
}    
table {   
    border-collapse: separate;   
    border-spacing: 0;   
}    
th, td {   
    text-align: left;   
    font-weight: normal;   
}    
img, iframe {   
    border: none;   
    text-decoration:none;   
}    
ol, ul {   
    list-style: none;   
}    
input, textarea, select, button {   
    font-size: 100%;   
    font-family: inherit;   
}    
select {   
    margin: inherit;   
}    
hr {   
    margin: 0;   
    padding: 0;   
    border: 0;   
    color: #000;   
    background-color: #000;   
    height: 1px  
}  

十.Chris Poteet’s Reset CSS

CSS Code复制内容到剪贴板

* {    
    vertical-align: baselinebaseline;    
    font-family: inherit;    
    font-style: inherit;    
    font-size: 100%;    
    border: none;    
    padding: 0;    
    margin: 0;    
}    
body {    
    padding: 5px;