yahoo CSS reset

來源:互聯網
上載者:User
html{    color:#000;    background:#FFF}body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,textarea,p,blockquote,th,td{    margin:0;    padding:0}table{    border-collapse:collapse;    border-spacing:0}fieldset,img{    border:0}address,caption,cite,code,dfn,em,strong,th,var{    font-style:normal;    font-weight:normal}li{    list-style:none}caption,th{    text-align:left}h1,h2,h3,h4,h5,h6{    font-size:100%;    font-weight:normal}q:before,q:after{    content:''}abbr,acronym{    border:0;    font-variant:normal;/*small-caps 小型的大寫字母體*/}/*上標*/sup{    vertical-align:text-top;/*把元素的頂端與父元素字型的頂端對齊*/}/*下標*/sub{    vertical-align:text-bottom;/*把元素的頂端與父元素字型的底端對齊*/}/*在瀏覽器中input,textarea(文字框),select(多選元素)中的字型都會比父元素的小。*/input,textarea,select{    font-family:inherit;/*從父元素繼承字型*/    font-size:inherit;/*從父元素繼承字型*/    font-weight:inherit;/*從父元素繼承字型*/}/*處理IE6/7的情況*/input,textarea,select{    *font-size:100%}/*legend不會繼承field的color屬性;所以要單獨設legend的文字顏色。*/legend{    color:#000}body{    /*字型大小13像素,行高為1.231倍*/    font:13px/1.231 arial,helvetica,clean,sans-serif;    *font-size:small;/*IE6跟7*/    *font:x-small;/*IE怪異模式*/}select,input,button,textarea{    font:99% arial,helvetica,clean,sans-serif}table{    font-size:inherit;    font:100%}pre,code,kbd,samp,tt{    font-family:monospace;    *font-size:108%;    line-height:100%}
.clear{    zoom:1;}.clear:after{    content:"";    height:0;    visibility:hidden;    display:block;    clear:both;}

 

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.