<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
body {
min-width: 320px;
max-width: 750px;
width: 10rem; /* //是flexible划分屏幕10等分 750/10=75 750/75=10rem */
margin: 0 auto;
line-height: 1.5;
font-family: Arial, Helvetica, sans-serif;
}
</style>
<script src="flexible.js"></script>
<title>Document</title>
</head>
<body>
SFDF
</body>
</html>
px转rem插件 cssrem