-
Notifications
You must be signed in to change notification settings - Fork 0
/
remDem.html
139 lines (128 loc) · 4.46 KB
/
remDem.html
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<title>remDemo</title>
<script type="text/javascript">
document.addEventListener('DOMContentLoaded', function (e) {
document.getElementsByTagName('html')[0].style.fontSize = window.innerWidth / 10 + 'px';
}, false);
</script>
<!-- <link rel="stylesheet" type="text/css" href="css/xxx.css"> -->
<style type="text/css">
* {
margin: 0;
padding: 0;
}
.header {
width: 100%;
height: 1.06667rem;
background-color: red;
}
.item {
width: 100%;
height: 5.33333rem;
margin-top: 0.13333rem;
}
.item-top {
width: 100%;
height: 1.06667rem;
position: relative;
background-color: green;
}
.top-img {
width: 0.8rem;
height: 0.8rem;
display: block;
position: absolute;
left: 0.26667rem;
top: 0.13333rem;
}
.item-middle {
width: 100%;
height: 3.2rem;
position: relative;
background-color: yellow;
}
.item-buttom {
width: 100%;
height: 1.06667rem;
position: relative;
background-color: blue;
}
.middle-text {
font-size: 17px;
padding: 0.08rem;
}
.like {
color: #fff;
font-size: 15px;
position: absolute;
right: 0.4rem;
bottom: 0;
}
</style>
</head>
<body>
<div class="header">
<p>我是header</p>
</div>
<div class="content">
<ul>
<li class="item">
<div class="item-top">
<img class="top-img"
src="http://wx.qlogo.cn/mmopen/v4P2R8A0QbPpy7UcLbicHEKQuWBL7cUD2PupycTlhauvkrGvwpia11cZ7icGses9uNhBCZh49mvmJia61N9Ga6ceYA/0">
</div>
<div class="item-middle">
<p class="middle-text">这是一段测试文字</p>
<p class="middle-text">段测试文字这是一段测试文字这是一段测试文字这是一段测试文字这是一段测试文字</p>
</div>
<div class="item-buttom">
<span class="like">点赞</span>
</div>
</li>
<li class="item">
<div class="item-top">
<img class="top-img"
src="http://wx.qlogo.cn/mmopen/v4P2R8A0QbPpy7UcLbicHEKQuWBL7cUD2PupycTlhauvkrGvwpia11cZ7icGses9uNhBCZh49mvmJia61N9Ga6ceYA/0">
</div>
<div class="item-middle">
<p class="middle-text">这是一段测试文字</p>
<p class="middle-text">段测试文字这是一段测试文字这是一段测试文字这是一段测试文字这是一段测试文字</p>
</div>
<div class="item-buttom">
<span class="like">点赞</span>
</div>
</li>
<li class="item">
<div class="item-top">
<img class="top-img"
src="http://wx.qlogo.cn/mmopen/v4P2R8A0QbPpy7UcLbicHEKQuWBL7cUD2PupycTlhauvkrGvwpia11cZ7icGses9uNhBCZh49mvmJia61N9Ga6ceYA/0">
</div>
<div class="item-middle">
<p class="middle-text">这是一段测试文字</p>
<p class="middle-text">段测试文字这是一段测试文字这是一段测试文字这是一段测试文字这是一段测试文字</p>
</div>
<div class="item-buttom">
<span class="like">点赞</span>
</div>
</li>
<li class="item">
<div class="item-top">
<img class="top-img"
src="http://wx.qlogo.cn/mmopen/v4P2R8A0QbPpy7UcLbicHEKQuWBL7cUD2PupycTlhauvkrGvwpia11cZ7icGses9uNhBCZh49mvmJia61N9Ga6ceYA/0">
</div>
<div class="item-middle">
<p class="middle-text">这是一段测试文字</p>
<p class="middle-text">段测试文字这是一段测试文字这是一段测试文字这是一段测试文字这是一段测试文字</p>
</div>
<div class="item-buttom">
<span class="like">点赞</span>
</div>
</li>
</ul>
</div>
</body>
</html>