Spaces:
Sleeping
Sleeping
app.py
Browse files
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: '
|
| 108 |
<style>
|
| 109 |
.comparison-table {
|
| 110 |
width: 100%;
|
| 111 |
border-collapse: collapse;
|
| 112 |
margin: 20px 0;
|
| 113 |
-
|
| 114 |
}
|
| 115 |
.comparison-table th {
|
| 116 |
-
background:
|
| 117 |
-
color:
|
| 118 |
-
padding:
|
| 119 |
text-align: left;
|
| 120 |
-
font-weight:
|
|
|
|
| 121 |
}
|
| 122 |
.comparison-table td {
|
| 123 |
-
padding:
|
| 124 |
-
border-bottom: 1px solid #
|
| 125 |
-
line-height: 1.
|
| 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: #
|
| 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">
|