Skip to content

Instantly share code, notes, and snippets.

@magicianShiro
Created November 1, 2018 10:56
Show Gist options
  • Save magicianShiro/06110437f3fecdcfdc9d4164cb00ecf8 to your computer and use it in GitHub Desktop.
Save magicianShiro/06110437f3fecdcfdc9d4164cb00ecf8 to your computer and use it in GitHub Desktop.
移动端 reset.css
* {
-webkit-tap-highlight-color: transparent;
}
*,
*::after,
*::before {
box-sizing: border-box;
}
html,
body {
width: 100%;
overflow-x: hidden;
font-family: PingFang SC, sans-serif;
background-color: #fff;
-webkit-overflow-scrolling: touch;
// height:100%;overflow:auto;margin: 0;
}
body, dl, dd, h1, h2, h3, h4, h5, h6, p, form {
margin: 0;
}
body.modal-open {
position: fixed;
}
ol, ul {
margin: 0;
padding: 0;
list-style: none;
}
a {
text-decoration: none;
}
img {
vertical-align: middle;
}
input,
button {
-webkit-appearance: none;
border: none;
outline: none;
box-shadow: none;
}
input[type=search]::-webkit-search-cancel-button,
input[type=search]::-webkit-search-decoration {
-webkit-appearance: none;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment