lllouo commited on
Commit
3ad03f2
·
1 Parent(s): 15fc4e7
Files changed (1) hide show
  1. app.py +12 -13
app.py CHANGED
@@ -104,34 +104,33 @@ def create_comparison_html(original_list, cleaned_list):
104
  创建HTML表格展示对比
105
  """
106
  html = """
107
- <div style="font-family: 'Segoe UI', Arial, sans-serif; max-width: 100%; overflow-x: auto;">
108
  <style>
109
  .comparison-table {
110
  width: 100%;
111
  border-collapse: collapse;
112
  margin: 20px 0;
113
- box-shadow: 0 2px 8px rgba(0,0,0,0.1);
114
  }
115
  .comparison-table th {
116
- background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
117
- color: white;
118
- padding: 12px;
119
  text-align: left;
120
- font-weight: 600;
 
121
  }
122
  .comparison-table td {
123
- padding: 12px;
124
- border-bottom: 1px solid #e0e0e0;
125
- line-height: 1.6;
126
- }
127
- .comparison-table tr:hover {
128
- background-color: #f8f9fa;
129
  }
130
  .index-col {
131
  width: 50px;
132
  text-align: center;
133
  font-weight: bold;
134
- color: #6c757d;
135
  }
136
  </style>
137
  <table class="comparison-table">
 
104
  创建HTML表格展示对比
105
  """
106
  html = """
107
+ <div style="font-family: 'Times New Roman', serif; max-width: 100%; overflow-x: auto;">
108
  <style>
109
  .comparison-table {
110
  width: 100%;
111
  border-collapse: collapse;
112
  margin: 20px 0;
113
+ border: 1px solid #000;
114
  }
115
  .comparison-table th {
116
+ background-color: #f2f2f2;
117
+ color: #000;
118
+ padding: 8px;
119
  text-align: left;
120
+ font-weight: bold;
121
+ border-bottom: 2px solid #000;
122
  }
123
  .comparison-table td {
124
+ padding: 8px;
125
+ border-bottom: 1px solid #ccc;
126
+ line-height: 1.5;
127
+ vertical-align: top;
 
 
128
  }
129
  .index-col {
130
  width: 50px;
131
  text-align: center;
132
  font-weight: bold;
133
+ color: #555;
134
  }
135
  </style>
136
  <table class="comparison-table">