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
.container {
display: flex;
flex-direction: column;
align-items: center;
}
.row {
display: flex;
}
.square {
width: 30px;
height: 30px;
border: 1px solid black;
margin: 5px;
display: flex;
align-items: center;
justify-content: center;
}
.center {
background-color: lightgray;
}
.arrows {
margin-top: 20px;
}
.arrow-up, .arrow-down, .arrow-left, .arrow-right {
width: 0;
height: 0;
border-left: 10px solid transparent;
border-right: 10px solid transparent;
}
.arrow-up {
border-bottom: 10px solid black;
margin-right: 5px;
}
.arrow-down {
border-top: 10px solid black;
margin-left: 5px;
}
.arrow-left {
border-right: 10px solid black;
transform: rotate(90deg);
margin-bottom: 5px;
}
.arrow-right {
border-left: 10px solid black;
transform: rotate(90deg);
margin-top: 5px;
}
.active {
background-color: yellow; /* 或者其他你想要的高亮颜色 */
}