Files
ClassContent/历届学生/18课程/class18/课程/2020-10-13/rem.html
2024-09-27 02:06:13 +08:00

59 lines
1.1 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>rem2</title>
<style>
body {
margin: 0;
padding: 0;
}
html {
font-size: 20px;
}
@media only screen and (min-width: 400px) {
html {
font-size: 21.33333333px !important;
}
}
@media only screen and (min-width: 414px) {
html {
font-size: 22.08px !important;
}
}
@media only screen and (min-width: 480px) {
html {
font-size: 25.6px !important;
}
}
@media only screen and (min-width: 767px) {
html {
font-size: 40.96px !important;
}
}
.box {
width: 9.375rem;
height: 9.375rem;
background: red;
float: left;
}
</style>
</head>
<body>
<div class="box"></div>
<div class="box" style="background: yellow;"></div>
</body>
</html>