ModelTrain.wxss 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. /* 表格容器 */
  2. .table-container {
  3. width: 100%;
  4. overflow-x: auto; /* 启用横向滚动 */
  5. white-space: nowrap; /* 禁止换行 */
  6. background-color: #fff;
  7. border: 1rpx solid #ddd;
  8. margin-top: 10rpx; /* 添加上边距,确保不会和顶部元素重叠 */
  9. white-space: nowrap; /* 禁止换行 */
  10. }
  11. /* 表头样式 */
  12. .table-header {
  13. display: flex;
  14. background-color: #61E054; /* 表头背景色 */
  15. font-weight: bold;
  16. text-align: center;
  17. }
  18. /* 表格单元格样式 */
  19. .table-cell {
  20. flex: none;
  21. width: 250rpx; /* 固定宽度 */
  22. padding: 10rpx;
  23. text-align: center;
  24. font-size: 28rpx;
  25. color: #030803; /* 表头文字颜色 */
  26. border-right: 1rpx solid #ddd;
  27. white-space: nowrap;
  28. overflow: hidden;
  29. text-overflow: ellipsis;
  30. }
  31. /* 表格行样式 */
  32. .table-row:nth-child(odd) {
  33. background-color: #E4FBE5; /* 奇数行背景色 */
  34. }
  35. .table-row:nth-child(even) {
  36. background-color: #fff; /* 偶数行背景色 */
  37. }
  38. /* 表格内容样式 */
  39. .table-body {
  40. display: flex;
  41. flex-direction: column;
  42. width: max-content;
  43. }
  44. .table-row {
  45. display: flex;
  46. flex-direction: row;
  47. border-bottom: 1rpx solid #ddd;
  48. }
  49. /* 单选框样式 */
  50. .radio {
  51. display: inline-block;
  52. margin-right: 10px; /* 单选框之间的间隔 */
  53. }
  54. /* 单选框选中时的样式 */
  55. .radio-checked {
  56. color: #1AAD19; /* 微信小程序主题色 */
  57. }
  58. /* 单选框未选中时的样式 */
  59. .radio-unchecked {
  60. color: #ccc; /* 灰色表示未选中 */
  61. }
  62. /* 按钮通用样式 */
  63. .button-container button {
  64. width: 50%; /* 按钮宽度100%,占满容器宽度 */
  65. height: 50px; /* 按钮高度 */
  66. line-height: 50px; /* 行高与按钮高度一致,使文本垂直居中 */
  67. background-color: #1AAD19; /* 微信绿 */
  68. color: white; /* 文字颜色为白色 */
  69. border-radius: 5px; /* 圆角边框 */
  70. font-size: 16px; /* 字体大小 */
  71. margin-top: 20px;
  72. }
  73. /* 按钮点击效果 */
  74. .button-container button:active {
  75. background-color: #179B16; /* 点击时背景颜色变深 */
  76. }
  77. /* 下拉框容器样式 */
  78. .picker-container {
  79. display: flex;
  80. align-items: center;
  81. justify-content: space-between;
  82. font-size: 16px; /* 字体大小 */
  83. color: #333; /* 字体颜色 */
  84. padding: 8px 12px; /* 内边距 */
  85. background-color: #fff; /* 背景颜色 */
  86. border: 1px solid #ddd; /* 边框 */
  87. border-radius: 4px; /* 圆角边框 */
  88. width: 200px; /* 固定宽度 */
  89. margin-left: auto; /* 自动左边距 */
  90. margin-right: auto; /* 自动右边距 */
  91. box-sizing: border-box; /* 确保边框和内边距包含在宽度内 */
  92. }
  93. /* 下拉框样式 */
  94. .picker {
  95. flex-grow: 1; /* 使下拉框占据剩余空间 */
  96. text-align: left; /* 文字左对齐 */
  97. }
  98. /* 三角形样式 */
  99. .picker-arrow {
  100. width: 0;
  101. height: 0;
  102. border-left: 5px solid transparent;
  103. border-right: 5px solid transparent;
  104. border-top: 5px solid #333; /* 三角形颜色 */
  105. margin-left: 10px; /* 与下拉框文本的间隔 */
  106. }
  107. /* 下拉框标题样式 */
  108. .picker-title {
  109. font-size: 16px; /* 字体大小 */
  110. font-weight: bold; /* 字体加粗 */
  111. color: #333; /* 字体颜色 */
  112. margin-bottom: 10px; /* 与下拉框之间的间隔 */
  113. text-align: center; /* 文字居中 */
  114. padding: 8px 0; /* 上下内边距 */
  115. background-color: #f0f0f0; /* 背景颜色 */
  116. border: 1px solid #ddd; /* 边框 */
  117. border-radius: 4px; /* 圆角边框 */
  118. width: 200px; /* 固定宽度 */
  119. margin-left: auto; /* 自动左边距 */
  120. margin-right: auto; /* 自动右边距 */
  121. box-sizing: border-box; /* 确保边框和内边距包含在宽度内 */
  122. }