/static/css/common.css
@charset "UTF-8";
/*初始化类*/
html {
font-family: "Helvetica Neue", Helvetica, sans-serif;
font-size: 40rpx;
}
html,
body {
-webkit-touch-callout: none;
-webkit-text-size-adjust: none;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
-webkit-user-select: none;
width: 100%;
}
body {
line-height: 1.5;
font-size: 28rpx;
color: #333333;
background-color: #F8F8F8;
outline: 0;
}
html,
body,
header,
section,
footer,
div,
ul,
ol,
li,
img,
a,
span,
em,
del,
legend,
center,
strong,
var,
fieldset,
form,
label,
dl,
dt,
dd,
cite,
input,
hr,
time,
mark,
code,
figcaption,
figure,
textarea,
h1,
h2,
h3,
h4,
h5,
h6,
p {
margin: 0;
border: 0;
padding: 0;
font-style: normal;
}
@media only screen and (min-width: 400px) {
html {
font-size: 21.33333333px !important;
}
}
@media only screen and (min-width: 414px) {
html {
font-size: 21px !important;
}
}
@media only screen and (min-width: 480px) {
html {
font-size: 25.6px !important;
}
}
ul,
li {
list-style: none;
}
a {
color: #333333;
text-decoration: none;
background-color: transparent;
}
textarea {
overflow: hidden;
resize: none;
}
button {
overflow: visible;
}
button,
select {
text-transform: none;
}
button,
input,
select,
textarea {
font: inherit;
color: inherit;
}
h1,
h2,
h3,
h4,
h5,
h6 {
font-weight: 400;
}
h1 {
font-size: 48rpx;
}
h2 {
font-size: 40rpx;
}
h3 {
font-size: 32rpx;
}
h4 {
font-size: 28rpx;
}
h5 {
font-size: 28rpx;
font-weight: normal;
color: #666666;
}
h6 {
font-size: 28rpx;
font-weight: normal;
color: #666666;
}
p {
color: #888888;
}
在App.vue引入
<style lang="scss">
@import '@/static/css/common.css';
</style>