QuadraV commited on
Commit
81e5a4e
·
verified ·
1 Parent(s): ee4b467

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +35 -12
index.html CHANGED
@@ -23,7 +23,9 @@
23
  display: flex;
24
  flex-direction: column;
25
  width: 80%;
26
- height: 80%;
 
 
27
  border: 1px solid #444;
28
  border-radius: 8px;
29
  padding: 20px;
@@ -37,7 +39,7 @@
37
  text-align: center;
38
  font-size: 2.5rem;
39
  margin-bottom: 20px;
40
- color: #ffffff; /* 标题白色 */
41
  border-bottom: 2px solid #444;
42
  padding-bottom: 15px;
43
  display: flex;
@@ -53,13 +55,11 @@
53
 
54
  .content {
55
  display: flex;
56
- height: calc(100% - 50px);
57
  flex-grow: 1;
58
  overflow: hidden;
59
  }
60
 
61
- .video-container {
62
- flex: 0 0 40%;
63
  margin: 10px;
64
  border: 1px solid #444;
65
  border-radius: 8px;
@@ -69,14 +69,12 @@
69
  overflow: hidden;
70
  }
71
 
 
 
 
 
72
  .asr-container {
73
  flex: 0 0 60%;
74
- margin: 10px;
75
- border: 1px solid #444;
76
- border-radius: 8px;
77
- padding: 15px;
78
- box-sizing: border-box;
79
- background-color: #333;
80
  overflow-y: auto;
81
  position: relative;
82
  display: flex;
@@ -85,7 +83,7 @@
85
 
86
  video {
87
  width: 100%;
88
- height: 300px;
89
  background-color: #000;
90
  border-radius: 8px;
91
  margin-bottom: 15px;
@@ -303,6 +301,31 @@
303
  footer a:hover {
304
  color: #00d473;
305
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
306
  </style>
307
  </head>
308
 
 
23
  display: flex;
24
  flex-direction: column;
25
  width: 80%;
26
+ max-width: 2000px; /* 添加最大宽度以避免过宽 */
27
+ min-width: 300px; /* 确保最小宽度以保持可读性 */
28
+ height: auto; /* 高度自适应内容 */
29
  border: 1px solid #444;
30
  border-radius: 8px;
31
  padding: 20px;
 
39
  text-align: center;
40
  font-size: 2.5rem;
41
  margin-bottom: 20px;
42
+ color: #ffffff;
43
  border-bottom: 2px solid #444;
44
  padding-bottom: 15px;
45
  display: flex;
 
55
 
56
  .content {
57
  display: flex;
 
58
  flex-grow: 1;
59
  overflow: hidden;
60
  }
61
 
62
+ .video-container, .asr-container {
 
63
  margin: 10px;
64
  border: 1px solid #444;
65
  border-radius: 8px;
 
69
  overflow: hidden;
70
  }
71
 
72
+ .video-container {
73
+ flex: 0 0 40%;
74
+ }
75
+
76
  .asr-container {
77
  flex: 0 0 60%;
 
 
 
 
 
 
78
  overflow-y: auto;
79
  position: relative;
80
  display: flex;
 
83
 
84
  video {
85
  width: 100%;
86
+ height: auto; /* 自适应视频高度 */
87
  background-color: #000;
88
  border-radius: 8px;
89
  margin-bottom: 15px;
 
301
  footer a:hover {
302
  color: #00d473;
303
  }
304
+
305
+ @media (max-width: 768px) {
306
+ .container {
307
+ width: 95%;
308
+ padding: 10px; /* 减小内边距以增加可用空间 */
309
+ }
310
+
311
+ .content {
312
+ flex-direction: column;
313
+ }
314
+
315
+ .video-container, .asr-container {
316
+ flex: 0 0 100%;
317
+ }
318
+
319
+ .title {
320
+ font-size: 1.5rem; /* 缩小标题字体以适应小屏幕 */
321
+ }
322
+
323
+ .asr-item input[type="text"],
324
+ .asr-item select,
325
+ .asr-item input.role-field {
326
+ width: auto; /* 使输入框在小屏幕上更灵活 */
327
+ }
328
+ }
329
  </style>
330
  </head>
331