CSS Reset
即重设浏览器的样式。在各种浏览器中,都会对CSS的选择器默认一些数值,譬如当h1没有被设置数值时,显示一定大小。但并不是所有的浏览器都使用一样的数值,所以,有了CSS Reset,以让网页的样式在各浏览器中表现一致。
此css是根据Eric_reset和YUI_reset修改合并而得:
@charset "utf-8";
/*---------------------------------
* Title:CSS_Reset
* version:reset.css
* Updated:2012.12.10
* Updated by: white-poplar.
---------------------------------*/
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;
}
body,button,input,select,textarea {
color: #4D4D4D;
font:12px/1.5 Geneva,Arial,Helvetica,sans-serif;
/*font:12px/1.6 "Microsoft Yahei","Tahoma","SimSun";*/
}
a {
text-decoration:none;
color:#333;
}
a:hover {
text-decoration:underline;
color:#900;
}
table {
border-collapse:collapse;
border-spacing:0;
}
fieldset,img {
border:0;
}
ol,ul {
list-style:none;
}
input,textarea,select {
font-family:inherit;
font-size:inherit;
font-weight:inherit;
}
input,textarea,select {
*font-size:100%;
}
textarea,select{
border:1px solid #C7C7C7;
padding:2px;
}
textarea{
overflow:auto;
resize:none;
}
caption,th {
text-align:left;
}
legend {
color:#000;
}
sup {
vertical-align:text-top;
}
sub {
vertical-align:text-bottom;
}
address,caption,cite,code,dfn,em,strong,th,var {
font-style:normal;
font-weight:normal;
}
h1,h2,h3,h4,h5,h6 {
font-size:100%;
font-weight:normal;
}
abbr,acronym {
border:0;
font-variant:normal;
}
blockquote, q {
quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
content: '';
content: none;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
display: block;
}