直接上案例
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
</head>
<style type="text/css">
html {
font-size: .32rem;
}
body {
flex: 1;
overflow: hidden;
}
.abnormalRepair {
width: 100%;
height: 100%;
flex: 1;
display: flex;
flex-direction: column;
align-items: center;
background: #ffffff;
text-align: center;
}
.abnormalRepair img {
width: 2.44rem;
height: 2.63rem;
margin-top: 1.8rem;
}
.abnormalRepair span {
display: block;
margin-top: .58rem;
font-size: .36rem;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500;
color: #393C3C;
line-height: .36rem;
}
</style>
<script>
;
(function(win, doc) {
'use strict';
var options = {
width: 750,
dpr: win.devicePixelRatio
};
var html = doc.documentElement,
width = html.g