Created
March 13, 2015 01:29
-
-
Save cycold/341bcdf20dacc55b0f49 to your computer and use it in GitHub Desktop.
_reset
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
只针对webapp(webkit) | |
*/ | |
@charset "utf-8"; | |
*{ | |
-webkit-tap-highlight-color: rgba(0, 0, 0, 0); | |
-moz-tap-highlight-color: rgba(0, 0, 0, 0); | |
-ms-touch-action: none; | |
-webkit-touch-callout: none; | |
-webkit-box-sizing: border-box; | |
-moz-box-sizing: border-box; | |
box-sizing: border-box; | |
padding: 0; | |
margin: 0; | |
} | |
*:before, | |
*:after { | |
-webkit-box-sizing: border-box; | |
-moz-box-sizing: border-box; | |
box-sizing: border-box; | |
} | |
body{ | |
-webkit-text-size-adjust:100%; | |
-ms-text-size-adjust: 100%; | |
text-size-adjust: 100%; | |
-webkit-overflow-scrolling: touch; | |
font-family: "Helvetica Neue", Helvetica, STHeiTi, sans-serif; | |
font-size: 14px; | |
/*line-height: 1.42857143;*/ | |
line-height: 21px; | |
} | |
a{ | |
text-decoration: none; | |
outline: none; | |
color:inherit; | |
background-color: transparent; | |
} | |
a:active, a:hover, a:focus, a:visited{ outline: none; outline: 0;} | |
span,i,em,b,strong,small,time,address{ font-style: normal; } | |
strong{ font-weight: 700; } | |
b{ font-weight: 300; } | |
small{ font-size: 12px; } | |
h1,h2,h3,h4,h5{font-weight: normal;} | |
img { border:none; vertical-align: middle; } | |
ul,ol,li{ list-style: none; } | |
button, html input[type=button], input[type=reset], input[type=submit] { | |
-webkit-appearance: button; | |
cursor: pointer; | |
} | |
input, button, select, textarea {font-family: inherit; font-size: inherit; line-height: inherit; } | |
input:focus,textarea:focus,button:focus{ outline: none !important; outline: 0 !important; } | |
input:active, textarea:active{outline: none !important; outline: 0 !important; } | |
input { line-height: normal;} | |
button,select {text-transform: none;} | |
button { overflow: visible;} | |
textarea{ vertical-align: top; resize: vertical; overflow: auto; } | |
table{ border-collapse: collapse; border-spacing: 0; empty-cells: show;} | |
audio,canvas,progress,video { | |
display: inline-block; | |
vertical-align: baseline; | |
} | |
.clearfix:before, | |
.clearfix:after { content: ""; display: table; } | |
.clearfix:after { clear: both } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment