forked from wuyawei/fe-code
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path1.html
More file actions
35 lines (35 loc) · 866 Bytes
/
Copy path1.html
File metadata and controls
35 lines (35 loc) · 866 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content=" width=device-width, initial-scale=1, minimum-scale=0.3, maximum-scale=3, user-scalable=no">
<title>Title</title>
</head>
<style>
html,body{
margin: 0;
padding: 0;
}
html{
font-size: 50px;
}
.app{
width: 7.5rem;
height: 3rem;
background-color: #ff6000;
color: #fff;
font-size: 0.24rem;
}
</style>
<body>
<div class="app">
啥时候实施
</div>
</body>
<!-- 100/(750/414) 414屏幕下的font-size; 那么 1rem = 100/(750/414);-->
<!-- 所以各宽高的rem值对应的实际像素,也做了相应的缩放,与dpr值无关,只是设计稿对应到设备上的一个缩放比例 -->
<!-- -->
<script src="1.js"></script>
<script>
</script>
</html>