<!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>回答问题</title> <style> body { font-family: Arial, sans-serif; background-color: #f4f4f4; margin: 0; padding: 0; display: flex; justify-content: center; align-items: center; height: 100vh; } .container { background-color: #fff; padding: 20px; border-radius: 8px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); text-align: center; max-width: 400px; width: 100%; } h1 { font-size: 24px; margin-bottom: 20px; } p { font-size: 18px; margin: 10px 0; } label { font-size: 16px; display: block; margin: 15px 0; } input[type="checkbox"], input[type="number"] { margin-right: 10px; } button { background-color: #4CAF50; color: white; padding: 10px 20px; border: none; border-radius: 5px; font-size: 16px; cursor: pointer; margin-top: 20px; } button:hover { background-color: #45a049; } .back-link { display: block; margin-top: 20px; text-decoration: none; font-size: 14px; color: #007BFF; } .back-link:hover { text-decoration: underline; } </style> </head> <body> <div class="container"> <h1>回答问题</h1> <form method="post"> <p>姓名: {{ student['name'] }}</p> <p>学号: {{ student['id'] }}</p> <input type="hidden" name="student_id" value="{{ student['id'] }}"> <label> <input type="checkbox" name="accurate_repeat"> 是否准确重复问题? </label> <label> 回答得分 (0.5-3): <input type="number" name="answer_score" min="0.5" max="3" step="0.1" required> </label> <button type="submit">提交</button> </form> <a href="{{ url_for('index') }}" class="back-link">返回首页</a> </div> </body> </html>