常用的reset.css:重置浏览器样式代码
在web前端开发的时候,常常为了避免浏览器自带的样式给页面带来的影响,基本都会给页面重置的样式,即reset.css" title="reset.css">reset.css。
点击下载:reset.css
html {font-family: "Helvetica Neue", Helvetica, STHeiTi, Arial, sans-serif;
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%;
font-size: 62.5%;
}
body {
margin: 0;
font-size: 1.4rem;
-webkit-overflow-scrolling: touch;
text-align: center;
background-color: #ffffff;
}
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
nav,
section,
summary {
display: block;
}
a {
background: transparent;
text-decoration: none;
color: #000;
}
a:active {
outline: 0;
}
b,
span {
font-weight: bold;
}
dfn {
font-style: normal;
}
img {
border: 0;
vertical-align: middle;
}
* {
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
-webkit-tap-highlight-color: transparent;
outline: none;
padding: 0;
margin: 0;
}
input,
textarea,
button {
border: 0;
margin: 0;
padding: 0;
font-family: "Helvetica Neue", Helvetica, STHeiTi, Arial, sans-serif;
}
textarea {
resize: none;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
ul,
ol {
list-style: none;
}
input::-moz-placeholder,
textarea::-moz-placeholder {
color: #ccc;
}
input:-ms-input-placeholder,
textarea:-ms-input-placeholder {
color: #ccc;
}
input::-webkit-input-placeholder,
textarea::-webkit-input-placeholder {
color: #ccc;
}
.clearfix:after {
content: ".";
display: block;
height: 0;
clear: both;
visibility: hidden;
}
.clearfix {
display: inline-block;
}
* html .clearfix {
height: 1%;
}
.clearfix {
display: block;
}
.clear {
clear: both;
}
以上是 常用的reset.css:重置浏览器样式代码 的全部内容, 来源链接: utcz.com/a/294.html