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;
}