123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- <div>
- <style>
- .form-container {
- max-width: 800px;
- margin: auto;
- background: #fff;
- padding: 20px;
- border-radius: 8px;
- box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
- }
- .form-group {
- margin-bottom: 20px;
- display: flex;
- justify-content: space-between;
- align-items: center; /* 垂直居中 */
- padding: 10px;
- border-bottom: 1px solid #eee;
- }
- .form-group:last-child {
- border-bottom: none;
- }
- label {
- display: block;
- margin-bottom: 5px;
- font-weight: bold;
- }
- .result-title {
- text-align: center;
- font-size: 26px;
- color: #333;
- }
- .result-score {
- text-align: center;
- font-size: 24px;
- color: #f00;
- }
- .result-desc {
- text-align: justify;
- font-size: 18px;
- color: #000;
- line-height: 1.5;
- margin-bottom: 20px;
- }
- .dimension {
- font-size: 16px;
- color: #333;
- display: flex;
- align-items: center; /* 垂直居中 */
- }
- .option {
- font-size: 16px;
- color: #00f;
- display: flex;
- align-items: center; /* 垂直居中 */
- }
- .icon {
- font-size: 24px;
- color: #999;
- margin-left: 10px; /* 添加一些间距 */
- }
- .icon-error { color: #e74c3c; } /* 极差 */
- .icon-success { color: #3498db; } /* 优秀 */
- </style>
- <div class="form-container">
- <div class="form-group">
- <label class="result-title">智能分析结果</label>
- </div>
- {foreach $data as $k=>$v}
- <div class="form-group">
- <label class="dimension">{$k+1}:{$v['title']}</label>
- <span class="icon icon-{$v['style']}">{$v['desc']}</span>
- </div>
- {/foreach}
- </div>
- </div>
|