|
@@ -1,6 +1,25 @@
|
|
|
|
|
+<style>
|
|
|
|
|
+ @media (max-width: 768px) {
|
|
|
|
|
+ .table td, .table th {
|
|
|
|
|
+ padding: .5rem; /* 减小填充 */
|
|
|
|
|
+ font-size: .875rem; /* 减小字体大小 */
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ .table {
|
|
|
|
|
+ width: 100%;
|
|
|
|
|
+ max-width: 100%;
|
|
|
|
|
+ margin-bottom: 1rem;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ .table th, .table td {
|
|
|
|
|
+ word-wrap: break-word; /* 允许单词内换行 */
|
|
|
|
|
+ }
|
|
|
|
|
+</style>
|
|
|
|
|
+
|
|
|
{% extends "base_index.html" %}
|
|
{% extends "base_index.html" %}
|
|
|
{% block content %}
|
|
{% block content %}
|
|
|
-<div class="container mt-5">
|
|
|
|
|
|
|
+<div class="container-fluid mt-2">
|
|
|
<h1 class="text-center mb-4">上传CSV文件</h1>
|
|
<h1 class="text-center mb-4">上传CSV文件</h1>
|
|
|
<div class="row justify-content-center">
|
|
<div class="row justify-content-center">
|
|
|
<div class="col-md-6">
|
|
<div class="col-md-6">
|
|
@@ -19,14 +38,19 @@
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
+ <!-- 增大表格展示 -->
|
|
|
|
|
+
|
|
|
{% if tables %}
|
|
{% if tables %}
|
|
|
- <h2 class="text-center">{{ file_name }}分析结果</h2>
|
|
|
|
|
- <div class="table-responsive">
|
|
|
|
|
|
|
+ <h3 class="text-center" style="margin-bottom: 3vh">{{ file_name }}分析结果</h3>
|
|
|
|
|
+ <div class="d-table mx-auto">
|
|
|
{% for table in tables %}
|
|
{% for table in tables %}
|
|
|
- {{ table|safe }}
|
|
|
|
|
|
|
+ <table class="table text-center">
|
|
|
|
|
+ {{ table|safe }}
|
|
|
|
|
+ </table>
|
|
|
{% endfor %}
|
|
{% endfor %}
|
|
|
</div>
|
|
</div>
|
|
|
{% endif %}
|
|
{% endif %}
|
|
|
|
|
+
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<script>
|
|
<script>
|