-
Notifications
You must be signed in to change notification settings - Fork 0
/
shengbei.html
95 lines (86 loc) · 1.81 KB
/
shengbei.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
</head>
<style>
body {
margin: 0;
padding: 0;
width: 100%;
min-width: 600px;
}
/*
.container {
height: 200px;
padding: 0 200px 0 200px;
overflow: hidden;
}
.left,
.right,
.center {
position: relative;
float: left;
height: 200px;
}
.left,
.right {
width: 200px;
background-color: blue;
}
.center {
width: 100%;
background-color: red;
}
.left {
margin-left: -100%;
left: -200px;
}
.right {
margin-left: -200px;
right: -200px;
} */
.container {
height: 200px;
width: 100%;
overflow: hidden;
display: flex;
}
.left,
.right {
width: 200px;
height: 200px;
background-color: blue;
}
.center {
flex: 1;
height: 200px;
margin: 0 10px;
background-color: red;
}
</style>
<body>
<div class="container">
<div class="left">left</div>
<div class="center">center</div>
<!-- //可变宽栏放在最前面,先渲染 -->
<div class="right">right</div>
</div>
</body>
<script>
window.onload = function () {
console.log(1);
let username = "123123";
setCookie("asadasd", "asdasdd");
};
function setCookie(name, value) {
var Days = 30;
var exp = new Date();
exp.setTime(exp.getTime() + Days * 24 * 60 * 60 * 1000);
document.cookie =
name + "=" + escape(value) + ";expires=" + exp.toGMTString();
}
</script>
</html>