tab3.page.scss 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. .header-title {
  2. font-family: "FangSong", serif; /* 使用仿宋体 */
  3. font-weight: bold; /* 加粗 */
  4. text-align: center; /* 居中 */
  5. }
  6. .image-container {
  7. position: relative;
  8. width: 430px;
  9. height: 430px;
  10. display: flex;
  11. justify-content: center;
  12. align-items: center;
  13. border-radius: 10px;
  14. overflow: hidden;
  15. margin-top: 0px;
  16. background: url('/assets/images/recognition-background.png') no-repeat center/cover;
  17. }
  18. .background-frame {
  19. position: relative;
  20. width: 87%; /* 内容框宽度 */
  21. height: 93%; /* 内容框高度 */
  22. background: rgb(196, 191, 191 ,0.8); /* 半透明灰色背景 */
  23. border-radius: 10px; /* 圆角与外框一致 */
  24. display: flex;
  25. justify-content: center;
  26. align-items: center;
  27. overflow: hidden; /* 确保内容不会溢出 */
  28. }
  29. .placeholder-text {
  30. color: white;
  31. font-size: 16px;
  32. text-align: center;
  33. }
  34. .image {
  35. width: 100%; /* 图片自适应内容框 */
  36. height: 100%;
  37. object-fit: cover; /* 确保图片完整覆盖框 */
  38. border-radius: 10px; /* 圆角与框一致 */
  39. }
  40. video {
  41. width: 100%;
  42. height: 100%;
  43. object-fit: cover;
  44. border-radius: 10px;
  45. }
  46. .toggle-button {
  47. position: absolute;
  48. top: 20px;
  49. right: 40px;
  50. z-index: 10;
  51. color: black;
  52. }
  53. .button-group {
  54. display: flex;
  55. flex-direction: column; /* 垂直排列 */
  56. justify-content: center; /* 垂直居中 */
  57. align-items: center; /* 水平居中 */
  58. height: 100vh; /* 页面高度,按钮垂直居中 */
  59. }
  60. .upload-container {
  61. display: flex;
  62. justify-content: space-between; /* 按钮之间均匀分布 */
  63. width: 100%; /* 按钮组整体宽度占页面100% */
  64. margin-bottom: 10px; /* 按钮组之间的间距 */
  65. margin-top: 10px;
  66. margin-right: 10px;
  67. }
  68. .camera-container {
  69. display: flex;
  70. justify-content: space-between; /* 按钮之间均匀分布 */
  71. width: 100%; /* 按钮组整体宽度占页面80% */
  72. margin-bottom: 10px; /* 按钮组之间的间距 */
  73. margin-top: 10px;
  74. margin-right: 10px;
  75. }
  76. .primary-button {
  77. --background: none;
  78. flex: 0 0 42.5%;
  79. height: 48px;
  80. font-size: 16px;
  81. font-family: "FangSong", serif; /* 使用仿宋体 */
  82. font-weight: bold; /* 加粗 */
  83. text-align: center;
  84. border-radius: 10px;
  85. color: black;
  86. background: url('/assets/images/button-background1.png') no-repeat center/cover;
  87. margin-left: 15px;
  88. margin-right: 15px;
  89. box-shadow: rgba(0, 0, 0, 0.2) 0px 4px 12px; /* 阴影效果 */
  90. }
  91. .secondary-button {
  92. --background: none;
  93. flex: 0 0 42.5%;;
  94. height: 48px;
  95. font-size: 16px;
  96. font-family: "FangSong", serif; /* 使用仿宋体 */
  97. font-weight: bold; /* 加粗 */
  98. text-align: center;
  99. border-radius: 10px;
  100. color: black;
  101. background: url('/assets/images/button-background1.png') no-repeat center/cover;
  102. margin-left: 15px;
  103. margin-right: 15px;
  104. box-shadow: rgba(0, 0, 0, 0.2) 0px 4px 12px; /* 阴影效果 */
  105. }
  106. .divider {
  107. border: none; /* 去掉默认边框 */
  108. height: 40px; /* 分割线高度 */
  109. width: calc 100%; /* 总宽度减去左右空出20px */
  110. margin: 16px auto; /* 自动居中 */
  111. background: url('/assets/images/divider.png') repeat-x center; /* 设置图片作为分割线 */
  112. background-size: contain; /* 确保图片在水平方向完整显示 */
  113. }
  114. .table-container {
  115. width: 90%;
  116. margin: 16px auto;
  117. max-height: 500px; /* 限制表格高度 */
  118. overflow-y: auto; /* 添加垂直滚动条 */
  119. border: 1px solid #ccc; /* 添加边框方便视觉分割 */
  120. border-radius: 10px; /* 圆角 */
  121. background: url('/assets/images/table-background.png') no-repeat center/cover;
  122. }
  123. table {
  124. width: 100%;
  125. border-collapse: collapse;
  126. font-family: "FangSong", serif; /* 使用仿宋体 */
  127. font-weight: bold; /* 加粗 */
  128. text-align: center; /* 居中 */
  129. }
  130. thead {
  131. position: sticky; /* 表头固定 */
  132. top: 0;
  133. background-color: #f4f4f4;
  134. z-index: 1;
  135. }
  136. th,
  137. td {
  138. padding: 12px;
  139. border: 1px solid #ccc;
  140. }
  141. th {
  142. font-weight: bold;
  143. }
  144. tbody tr:hover {
  145. background-color: #f9f9f9;
  146. }