From c4efd778a95bd368f38279057c5b54f24701bac9 Mon Sep 17 00:00:00 2001 From: mxr612 Date: Tue, 22 Apr 2025 21:09:49 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E8=B0=83=E6=95=B4CSS=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F=E5=92=8CHTML=E6=A8=A1=E6=9D=BF=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 修改`styles.css`中的`input[type="submit"]`样式,增加宽度并调整边距 - 修复`scale.html`中的拼写错误,将`lable`改为`label` - 更新`base.html`的meta描述和关键词,优化SEO - 调整HTML模板中的格式和缩进,提高代码可读性 --- static/styles.css | 7 ++++--- templates/base.html | 18 +++++++++--------- templates/scale.html | 4 ++-- 3 files changed, 15 insertions(+), 14 deletions(-) diff --git a/static/styles.css b/static/styles.css index 24fb6d3..68a465f 100644 --- a/static/styles.css +++ b/static/styles.css @@ -141,14 +141,15 @@ main { } input[type="submit"] { - float: right; - margin-top: 20px; + /* float: right; */ + margin-top: 30px; background-color: #000000; color: rgb(255, 255, 255); padding: 15px 30px; + width: 100%; border: none; border-radius: 4px; cursor: pointer; - margin: 30px; + /* margin: 30px; */ } } \ No newline at end of file diff --git a/templates/base.html b/templates/base.html index cb7cfea..fbdcee8 100644 --- a/templates/base.html +++ b/templates/base.html @@ -4,8 +4,8 @@ - - + + {% block head_extra %}{% endblock %} @@ -18,21 +18,21 @@ - +
{% block main %}{% endblock %}
- - - - + diff --git a/templates/scale.html b/templates/scale.html index 17faa57..2dbca5e 100644 --- a/templates/scale.html +++ b/templates/scale.html @@ -13,9 +13,9 @@ {% for id, question in scale['items'].items() %}
- {% for option, lable in scale.options.items() %} + {% for option, label in scale.options.items() %} - + {% endfor %}
{% endfor %}