重置样式表
- 这就是一个简单的我自己使用的重置样式表
- 里面的话 大多数的重置是都有啦的
- 大家没有的可以收藏起来 拿去用
html{
font-size:14px;
box-sizing: border-box;
}
html,body{
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
-webkit-overflow-scrolling: touch;
overflow-scrolling: touch;
height: 100%;
}
body{
background: #fff;
font:14px,-apple-system,BlinkMacSystemFont,'Segoe UI','PingFang SC','Hiragino Sans GB','Microsoft YaHei',
'Helvetica Neue',Helvetica,Arial,sans-serif,'Apple Color Emoji','Segoe UI Emoji','Segoe UI Symbol'
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
body,
p,
h1,
h2,
h3,
h4,
h5,
h6,
dl,
dd,
ul,
ol,
th,
td,
button,
figure,
input,
textarea,
form,
pre,
blockquote,
figure{
margin: 0;
padding: 0;
}
a{
cursor: pointer;
text-decoration:none;
transition: color 0.3s ease;
}
ol,
ul{
list-style:none
}
a,
h1,
h2,
h3,
h4,
h5,
h6,
input,
select,
button,
textarea {
font-family: inherit;
font-size: inherit;
font-weight: inherit;
font-style: inherit;
line-height: inherit;
color: inherit;
outline: none;
}
button,
input[type='submit'],
input[type='button'] {
cursor: pointer;
}
input[type='number'] {
-moz-appearance: textfield;
}
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
margin: 0;
-webkit-appearance: none;
}
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
border-style: none;
padding: 0;
}
[hidden] {
display: none;
}
template {
display: none;
}
input,textarea,button,select{
border:none;
}
input:focus,textarea:focus,button:focus,select:focus{
outline: none;
}