ModelTrain.wxss 3.5 KB

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