Skip to content

Commit 064af21

Browse files
committed
修改了add.html样式代码
1 parent 39f70bd commit 064af21

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Day31-Day35/car/templates/add.html

+7-1
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,19 @@
33
<head>
44
<meta charset="UTF-8">
55
<title>添加</title>
6+
<style>
7+
.err {
8+
color: red;
9+
font-size: 14px;
10+
}
11+
</style>
612
</head>
713
<body>
814
<h2>添加违章记录</h2>
915
<hr>
1016
<p>
1117
{% for err in errors %}
12-
<div style="color: red; font-size: 12px;">{{ err }}</div>
18+
<div class="err">{{ err }}</div>
1319
{% endfor %}
1420
</p>
1521
<form action="/add" method="post">

0 commit comments

Comments
 (0)