css初始化代码
2013-10-23 10:58
260 查看
我个人比较懒 注释就不写了
清除浮动那一行代码比较重要
清除浮动那一行代码比较重要
html{color:#000;background:#fff; overflow-y:auto;} body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,input,button,textarea,p,blockquote,th,td{margin:0;padding:0;} body,button,input,select,textarea{font-size:12px;font-family:"SimSun","宋体","Arial Narrow";} img{border:none;} body{background:#fff;} em,strong{font-style:normal;font-weight:normal;} ul,li,ol{list-style:none;} table{border-collapse:collapse;border-spacing:0;} h1{font-size:18px;} h2{font-size:16px;} h3{font-size:14px;} h1,h2,h3,h4,h5,h6{font-weight:bold;} h4,h5,h6{font-size:100%;} address,cite,dfn,em,var{font-style:normal;} button,input,select,textarea{font-size:100%;} button{ cursor:pointer; outline:none;} q:before, q:after{ content: '';} .cl{ clear:both; overflow:hidden; height:0; line-height:0; font-size:0; width:0;} .fl{ float:left;} .fr{ float:right;} /*link style*/ a{ color:#000;text-decoration:none;} a:link{ color:#000; text-decoration:none;} a:visited{ color:#6c6c6c; text-decoration:none;} a:hover { color:#1f3e94;text-decoration: none;} a:active{ color:#C52500; text-decoration:none;}