-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
123 lines (107 loc) · 2.69 KB
/
styles.css
File metadata and controls
123 lines (107 loc) · 2.69 KB
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
body, html {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
width: 100%;
height: 100%;
overflow: hidden; /* 防止出现滚动条 */
}
.grid-container {
margin: 1em;
display: grid;
grid-template-columns: 1fr 12fr; /* 三列,不同宽度 */
grid-template-rows: 1fr 18fr; /* 两行,不同高度 */
gap: 0;
border-collapse: collapse;
position: relative;
width: 98vw; /* 宽度占据整个视口宽度 */
height: 97vh; /* 高度占据整个视口高度 */
}
.grid-item {
border: 1px solid #000;
padding: 20px;
display: flex; /* 使用 flex 布局 */
flex-direction: column; /* 垂直排列 */
width: 100%; /* 撑满父容器宽度 */
height: 100%; /* 撑满父容器高度 */
box-sizing: border-box; /* 包含内边距和边框在内的宽高计算方式 */
}
/* 隐藏外边线 */
.grid-container::before,
.grid-container::after,
.grid-item::before,
.grid-item::after {
content: '';
position: absolute;
background: white;
}
/* 隐藏左边线 */
.grid-container::before {
width: 1px;
height: 100%;
left: 0;
top: 0;
}
.grid-container::after {
width: 1px;
height: 100%;
right: 0;
top: 0;
}
/* 隐藏顶部边线 */
.grid-item:first-child::before {
width: 100%;
height: 1px;
top: 0;
left: 0;
}
.grid-item:nth-child(2)::before {
width: 100%;
height: 1px;
top: 0;
left: 0;
}
/* 隐藏底部边线 */
.grid-item:nth-last-child(3)::after {
width: 100%;
height: 1px;
bottom: 0;
left: 0;
}
.grid-item:nth-last-child(2)::after {
width: 100%;
height: 1px;
bottom: 0;
left: 0;
}
.content {
flex: 1; /*占满剩余空间*/
display: flex; /* 使用 flex 布局 */
flex-direction: column; /* 垂直排列 */
width: auto; /* 撑满父容器宽度 */
height: 100%; /* 撑满父容器高度 */
}
.iframe-container {
flex: 1; /* 占满剩余空间 */
width: 100%; /* 撑满父容器宽度 */
height: 100%; /* 撑满父容器高度 */
}
#iframe {
width: 100%; /* 撑满父容器宽度 */
height: 100%; /* 撑满父容器高度 */
border: none; /* 移除边框 */
}
.sidebar {
display: flex;
justify-content: space-between;
align-items: center; /* 可选,垂直居中对齐 */
}
.sidebar a {
text-decoration: none; /* 可选,去除链接下划线 */
padding: 20px; /* 可选,设置链接内边距 */
color: #333; /* 可选,设置链接文本颜色 */
font-size: 20px; /* 可选,设置链接文本大小 */
}
.sidebar a:hover {
color: #2aae91; /* 可选,设置链接鼠标悬停时的文本颜色 */
}