web常用样式初始化css
1 html, body ,div, ul, li, ol, dl, dd, dt, p, h1, h2, h3, h4, h5, h6, form,a,img,span,em,i,b,iframe,strong,label{ padding:0; margin:0;-webkit-tap-highlight-color: rgba(0,0,0,0);} 2 html,body{height:100%;overflow: hidden;} 3 html{-webkit-font-smoothing: antialiased;-webkit-text-size-adjust:none;} 4 body{font-size: 16px;font-family:sans-serif; color: #000;background-color:#ececec;} 5 6 article,aside,details,figcaption,figure,footer,header,hgroup,menu,main,nav,section,summary{display:block;} 7 ol,ul{ list-style: none; } 8 a{ text-decoration: none; color: #333; cursor: pointer;-webkit-touch-callout:none;} 9 em, i { font-style: normal; } 10 img{vertical-align:middle;border:none; -webkit-touch-callout:none;} 11 a,input, select, textarea,button { padding:0; margin:0;border: 0;outline: 0; border-radius: 0; -webkit-appearance: none;} 12 input:disabled{background-color: #fff;} 13 textarea{resize: none;} 14 table {border-spacing: 0;border-collapse: collapse;} 15 16 ::-webkit-scrollbar {width: 3px; height:3px;background-color:transparent; } 17 ::-webkit-scrollbar-track {background-color:transparent;} 18 ::-webkit-scrollbar-thumb {background-color:rgba(0, 0, 0, .298039);border-radius: 2px;} 19 20 ::-webkit-input-placeholder { color: #666;opacity: 1;} 21 :-moz-placeholder {color: #666;opacity: 1;} 22 ::-moz-placeholder {color: #666;opacity: 1;} 23 :-ms-input-placeholder {color: #666;opacity: 1;}