-
Notifications
You must be signed in to change notification settings - Fork 6
reset css
CodeDreamfy edited this page Sep 28, 2016
·
1 revision
###移动端
/* reset */
* { box-sizing: border-box;}
html,body {
-webkit-user-select: none; /* 禁止选中文本(如无文本选中需求,此为必选项) */
user-select: none;
-webkit-overflow-scrolling: touch;
-webkit-font-smoothing: antialiased;
-webkit-touch-callout: none;
height: 100%;
overflow: hidden;
}
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
font-size: 14px;
line-height: 1.5;
color: #333;
background-color: #fff;
}
ul,li,ol,h1,h2,h3,p { margin: 0; padding: 0;}
a { text-decoration: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent;}
ul,ol { list-style: none;}
em,i { font-style: normal;}
h1,h2,h3 { font-size: 100%; font-weight: normal;}
/* utils */
.clearfix { *zoom: 1;}
.clearfix:after { content:' '; display: block; clear: both; visibility: hidden; height: 0;}
.hidden { text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }
/* common */
.wrapper { width: 100%; height: 100%; margin: 0 auto 68px; padding-bottom: 50px; overflow-y: auto; background: #f5f5f5; position: relative;}