-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjs_array.html
105 lines (89 loc) · 1.86 KB
/
js_array.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
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8"/>
<title>display:inline-block</title>
<style type="text/javascript"></style>
</head>
<body>
<div class="contain">
<!-- <div class="column"></div>
<div class="column"></div>
<div class="column"></div> -->
<div class="icon-menu"></div>
</div>
<script type="text/javascript">
let o = {}
var bValue
Object.defineProperty(o, 'b', {
set: newValue => {
bValue = newValue
console.log('set方法调用了====' + newValue)
},
get () { return bValue },
configurable: true,
enumerable: true,
writable:true,
})
o.b = 1000
console.log(o.b)
</script>
<style>
.icon-menu {
display: inline-block;
box-sizing: content-box;
width: 100px;
height: 100px;
border-radius: 50%;
padding: 10px;
border: 10px solid red;
background-color: green;
background-clip: content-box;
}
h1 {
content: url("./1.jpg");
}
.father {
width: 150px;
padding: 10px;
background-color: #cd0000;
white-space: nowrap;
}
.child {
display: inline-block;
padding: 5px;
background-color: #f0f3f9;
}
table {
width: 280px;
margin: 0 auto;
text-align: left;
}
.column:nth-of-type(1),
.column:nth-of-type(2) {
float: left;
width: 100px;
height: 300px;
background-color: green;
}
.column:nth-of-type(2) {
float: right;
}
.column:nth-of-type(3) {
overflow: hidden;
/*创建bfc*/
height: 300px;
background-color: red;
}
/* div.test {
color: red;
}
div::after {
content: "1111"
}
div::before {
content: "2222";
} */
</style>
</body>
</html>