Calculate.wxss 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. /* 页面整体背景 */
  2. .green-box {
  3. background-color: #4caf50; /* 绿色背景 */
  4. padding: 10px 20px; /* 减小上下内边距,控制高度 */
  5. text-align: center;
  6. display: flex;
  7. flex-direction: column; /* 设置垂直方向布局 */
  8. justify-content: center;
  9. align-items: center;
  10. max-height: 100rpx; /* 限制最大高度 */
  11. max-width: calc(100% - 10px); /* 宽度最大100%,两边各留5px */
  12. margin-left: 18px; /* 左边留5px */
  13. margin-right: 18px; /* 右边留5px */
  14. box-sizing: border-box; /* 确保 padding 和 margin 不影响宽度计算 */
  15. }
  16. .title-en {
  17. font-size: 16px;
  18. color: #fff;
  19. font-weight: bold;
  20. margin-bottom: 5px; /* 英文标题和中文标题之间的间距 */
  21. }
  22. .title-cn {
  23. font-size: 16px;
  24. color: #f1f1f1;
  25. font-weight: normal;
  26. }
  27. /* 描述文本样式 */
  28. .description {
  29. font-size: 16px;
  30. color: #000;
  31. margin-top: 5px; /* 确保文本紧接着标题下面 */
  32. text-align: center; /* 保持文本居中 */
  33. }
  34. /* 普通文本样式 */
  35. .container {
  36. padding: 10px 20px; /* 调整容器的内边距,减小文字与容器的距离 */
  37. line-height: 1; /* 调整行高,控制文字的垂直间距 */
  38. }
  39. .regular-text {
  40. font-size: 16px; /* 设置字体大小 */
  41. color: #333333;
  42. }
  43. .green-box {
  44. padding: 20px;
  45. background-color: #4CAF50;
  46. }
  47. .green-btn {
  48. margin-top: 20px;
  49. display: flex;
  50. justify-content: space-between;
  51. }
  52. .btn {
  53. width: 45%;
  54. padding: 6px 0; /* 减小内边距,按钮看起来会更矮 */
  55. background-color: #00C853;
  56. color: white;
  57. text-align: center;
  58. border-radius: 5px;
  59. font-size: 24px; /* 调整字体大小,适应按钮高度 */
  60. line-height: 30px; /* 调整按钮内文字的行高 */
  61. }
  62. .btn:hover {
  63. background-color: #45a049; /* 按钮悬停时的颜色变化 */
  64. }
  65. .btn:active {
  66. background-color: #388e3c; /* 按钮点击时的颜色变化 */
  67. }
  68. /*.green-btn {
  69. display: flex; /* 使用 flex 布局
  70. justify-content: space-between; /* 水平分布按钮,间距自动
  71. gap: 10rpx; /* 添加按钮之间的间距
  72. }
  73. .btn {
  74. background-color: #32cd32;
  75. color: white;
  76. padding: 10px 20px;
  77. border-radius: 5px;
  78. border: none;
  79. cursor: pointer;
  80. }*/