analysis.html 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <div>
  2. <style>
  3. .form-container {
  4. max-width: 800px;
  5. margin: auto;
  6. background: #fff;
  7. padding: 20px;
  8. border-radius: 8px;
  9. box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  10. }
  11. .form-group {
  12. margin-bottom: 20px;
  13. display: flex;
  14. justify-content: space-between;
  15. align-items: center; /* 垂直居中 */
  16. padding: 10px;
  17. border-bottom: 1px solid #eee;
  18. }
  19. .form-group:last-child {
  20. border-bottom: none;
  21. }
  22. label {
  23. display: block;
  24. margin-bottom: 5px;
  25. font-weight: bold;
  26. }
  27. .result-title {
  28. text-align: center;
  29. font-size: 26px;
  30. color: #333;
  31. }
  32. .result-score {
  33. text-align: center;
  34. font-size: 24px;
  35. color: #f00;
  36. }
  37. .result-desc {
  38. text-align: justify;
  39. font-size: 18px;
  40. color: #000;
  41. line-height: 1.5;
  42. margin-bottom: 20px;
  43. }
  44. .dimension {
  45. font-size: 16px;
  46. color: #333;
  47. display: flex;
  48. align-items: center; /* 垂直居中 */
  49. }
  50. .option {
  51. font-size: 16px;
  52. color: #00f;
  53. display: flex;
  54. align-items: center; /* 垂直居中 */
  55. }
  56. .icon {
  57. font-size: 24px;
  58. color: #999;
  59. margin-left: 10px; /* 添加一些间距 */
  60. }
  61. .icon-error { color: #e74c3c; } /* 极差 */
  62. .icon-success { color: #3498db; } /* 优秀 */
  63. </style>
  64. <div class="form-container">
  65. <div class="form-group">
  66. <label class="result-title">智能分析结果</label>
  67. </div>
  68. {foreach $data as $k=>$v}
  69. <div class="form-group">
  70. <label class="dimension">{$k+1}:{$v['title']}</label>
  71. <span class="icon icon-{$v['style']}">{$v['desc']}</span>
  72. </div>
  73. {/foreach}
  74. </div>
  75. </div>