时间:2020年5月4日22:40:51
相比起优化页面1,此页面已经实现答题跳转和答题变蓝效果
{
% load staticfiles %}
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>在线考试</title>
<link href="{% static 'css/main.css' %}" rel="stylesheet" type="text/css" />
<link href="{% static 'css/iconfont.css' %}" rel="stylesheet" type="text/css" />
<link href="{% static 'css/test.css' %}" rel="stylesheet" type="text/css" />
<style>
.hasBeenAnswer {
background: #5d9cec;
color:#fff;
}
</style>
</head>
<body>
<div class="main">
<!--nr start-->
<div class="test_main">
<div class="nr_left">
<div class="test">
<form action="" method="post">
{
% csrf_token %}
{
#循环读出所有的试题#}
<div class="test_title">
<!-- <p class="test_time">
<i class="icon iconfont"></i><b class="alt-1">02:00</b>
</p> -->
<font><input type="submit" name="exam" value="交卷"></font>
</div>
<div class="test_content">
<h1 style="position: relative" >欢迎进入测试^_^</h1>
<div class="test_content_title">
<h2>单选题</h2>
<p>
<span