这里是属于静态数据页面,直接用就可以了
先看一下页面
下面是代码部分,直接用就行,但是js可能你们没用,所以selset选择你们自己样式需要调整下
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<base href="<%=basePath%>"></base>
<meta charset="UTF-8">
<title>考试</title>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport"
content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi"/>
<link rel="stylesheet" href="css/font.css">
<link rel="stylesheet" href="css/xadmin.css">
<script src="js/lib/layui/layui.js" charset="utf-8"></script>
<script type="text/javascript" src="js/xadmin.js"></script>
<!--[if lt IE 9]>
<script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
<script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="box">
<label class="boxtext">沐卿゚-前端考试班试卷</label>
<label style="margin-top: 20px;font-size: 14px;display: inline-block;color:rgba(102, 102, 102, 1);" >考试时长:45分钟</label>
<label style="margin-top: 20px;font-size: 14px;display: inline-block;color:rgba(102, 102, 102, 1);margin-left: 32px" >用时:40:32:17</label>
<label style="margin-top: 20px;font-size: 14px;display: inline-block;color:rgba(102, 102, 102, 1);margin-left: 32px" >达标分数:60分</label>
<label style="margin-top: 20px;font-size: 14px;display: inline-block;color:rgba(102, 102, 102, 1);margin-left: 32px" >考试总分数:100分</label>
<label style="margin-top: 20px;font-size: 14px;display: inline-block;color:rgba(102, 102, 102, 1);margin-left: 32px" >
考试得分:
</label>
<%-- 考试试题--%>
<div class="banner">
<div style="margin-left: 15px;padding-top: 20px">
<i style="width: 3px;height: 12px;background-color: rgba(0, 172, 156, 1);display:inline-block;"></i>
<i style="font-style: normal;font-weight: bold;margin-left: 4px;color: rgba(0, 172, 156, 1)">以下为填空题,一共5题,每题2分,合计10分</i>
<div style="position: relative">
<label style="display: block;font-weight: bold;margin-top: 28px">1.阐述清楚浮动的几种方式。</label>
<label style="display: block;margin-top: 15px;font-size: 14px">1、父级div定义 height;2、父级div定义 overflow:hidden;3、结尾处加空div标签 clear:both。</label>
<form class="layui-form" action="" style="position: absolute;right: 15px;top: 0">
<div class="layui-inline layui-show-xs-block">
<select name="city" lay-verify="required">
<option value="">选择分数</option>
<option value="0">8分</option>
<option value="1">20分</option>
</select>
</div>
</form>
<div style="width: 100%;height: 40px;background-color: rgba(245, 245, 245, 1);margin-top: 10px">
<label style="display: block;line-height: 40px;margin-left: 10px;color:rgba(102, 102, 102, 1);">参考答案:1、父级div定义 height;2、父级div定义 overflow:hidden;3、结尾处加空div标签 clear:both。</label>
</div>
</div>
<div style="position: relative">
<label style="display: block;font-weight: bold;margin-top: 28px">2.请描述一下 cookies sessionStorage和localstorage区别。</label>
<label style="display: block;margin-top: 15px;font-size: 14px">1、1.存储大小;2、丝光绿蝇;3、大头金蝇;4、巨尾阿丽蝇</label>
<form class="layui-form" action="" style="position: absolute;right: 15px;top: 0">
<div class="layui-inline layui-show-xs-block">
<select name="city" lay-verify="required">
<option value="">选择分数</option>
<option value="0">10分</option>
<option value="1">20分</option>
</select>
</div>
</form>
<div style="width: 100%;height: 40px;background-color: rgba(245, 245, 245, 1);margin-top: 10px">
<label style="display: block;line-height: 40px;margin-left: 10px;color:rgba(102, 102, 102, 1);">参考答案:1、家蝇;2、丝光绿蝇;3、大头金蝇;4、巨尾阿丽蝇</label>
</div>
</div>
</div>
<%-- 简答题--%>
<div style="margin-left: 15px;padding-top: 20px">
<i style="width: 3px;height: 12px;background-color: rgba(0, 172, 156, 1);display:inline-block;"></i>
<i style="font-style: normal;font-weight: bold;margin-left: 4px;color: rgba(0, 172, 156, 1)">以下为简答题,一共5题,每题2分,合计10分</i>
<div style="position: relative">
<label style="display: block;font-weight: bold;margin-top: 28px">1.蟑螂的生活史与蚊虫有什么不同?为什么?</label>
<label style="display: block;margin-top: 15px;font-size: 14px;width: 66%">蟑螂的生活史为半变态即卵→幼虫→成虫 蚊虫的生活史为完全变态即卵→幼虫→蛹→成虫 蚊虫除蛹外其它虫期均在水中生成,而蟑螂各虫期均在陆地生存; 蚊虫有一个相对静止的蛹期;</label>
<form class="layui-form" action="" style="position: absolute;right: 15px;top: 0">
<div class="layui-inline layui-show-xs-block">
<select name="city" lay-verify="required">
<option value="">选择分数</option>
<option value="0">10分</option>
<option value="1">20分</option>
</select>
</div>
</form>
<div style="width: 98%;height: auto;background-color: rgba(245, 245, 245, 1);margin-top: 10px;padding: 14px 0px">
<label style="display: block;margin-left: 10px;color:rgba(102, 102, 102, 1);padding-right: 10px;">参考答案:蟑螂的生活史为半变态即卵→幼虫→成虫 蚊虫的生活史为完全变态即卵→幼虫→蛹→成虫 蚊虫除蛹外其它虫期均在水中生成,而蟑螂各虫期均在陆地生存; 蚊虫有一个相对静止的蛹期;</label>
</div>
</div>
<div style="position: relative">
<label style="display: block;font-weight: bold;margin-top: 28px">2.请说出至少5种常用卫生杀虫剂药剂主要剂型</label>
<label style="display: block;margin-top: 15px;font-size: 14px;width: 66%">乳油、可湿性粉剂、粉剂、气雾剂、颗粒剂、粉剂、水乳剂、烟剂、缓释剂</label>
<form class="layui-form" action="" style="position: absolute;right: 15px;top: 0">
<div class="layui-inline layui-show-xs-block">
<select name="city" lay-verify="required">
<option value="">选择分数</option>
<option value="0">10分</option>
<option value="1">20分</option>
</select>
</div>
</form>
<div style="width: 98%;height: auto;background-color: rgba(245, 245, 245, 1);margin-top: 10px;padding: 14px 0px">
<label style="display: block;margin-left: 10px;color:rgba(102, 102, 102, 1);padding-right: 10px;">参考答案:乳油、可湿性粉剂、粉剂、气雾剂、颗粒剂、粉剂、水乳剂、烟剂、缓释剂</label>
</div>
</div>
</div>
<%-- 名词解析--%>
<div style="margin-left: 15px;padding-top: 20px">
<i style="width: 3px;height: 12px;background-color: rgba(0, 172, 156, 1);display:inline-block;"></i>
<i style="font-style: normal;font-weight: bold;margin-left: 4px;color: rgba(0, 172, 156, 1)">以下为名词解析题,一共5题,每题2分,合计10分</i>
<div style="position: relative">
<label style="display: block;font-weight: bold;margin-top: 28px">1.布雷图指数</label>
<label style="display: block;margin-top: 15px;font-size: 14px;width: 66%">“布雷图指数”是评价一个地区伊蚊密度的指标,也就是平均每百户内有伊蚊幼虫(孑孓)孳生的容器数。“布雷图指数”在5以下,则属于安全范围;如果该指数高于20,则意味着一旦有外部病例输入,就可能在该地区造成蚊媒传染病的流行。</label>
<form class="layui-form" action="" style="position: absolute;right: 15px;top: 0">
<div class="layui-inline layui-show-xs-block">
<select name="city" lay-verify="required">
<option value="">选择分数</option>
<option value="0">10分</option>
<option value="1">20分</option>
</select>
</div>
</form>
<div style="width:98%;height: auto;background-color: rgba(245, 245, 245, 1);margin-top: 10px;padding: 14px 0px">
<label style="display: block;margin-left: 10px;color:rgba(102, 102, 102, 1);padding-right: 10px;">参考答案:“布雷图指数”是评价一个地区伊蚊密度的指标,也就是平均每百户内有伊蚊幼虫(孑孓)孳生的容器数。“布雷图指数”在5以下,则属于安全范围;如果该指数高于20,则意味着一旦有外部病例输入,就可能在该地区造成蚊媒传染病的流行。</label>
</div>
</div>
<div style="position: relative">
<label style="display: block;font-weight: bold;margin-top: 28px">2.蝇蛆病</label>
<label style="display: block;margin-top: 15px;font-size: 14px;width: 66%">蝇蛆病是指蝇类的幼虫----蛆寄生在人体或动物体上引起的疾病</label>
<form class="layui-form" action="" style="position: absolute;right: 15px;top: 0">
<div class="layui-inline layui-show-xs-block">
<select name="city" lay-verify="required">
<option value="">选择分数</option>
<option value="0">10分</option>
<option value="1">20分</option>
</select>
</div>
</form>
<div style="width: 98%;height: auto;background-color: rgba(245, 245, 245, 1);margin-top: 10px;padding: 14px 0px">
<label style="display: block;margin-left: 10px;color:rgba(102, 102, 102, 1);padding-right: 10px;">参考答案:蝇蛆病是指蝇类的幼虫----蛆寄生在人体或动物体上引起的疾病</label>
</div>
</div>
</div>
<%-- 提交确认--%>
<div style="display: flex;justify-content: center;align-items: center;margin-top: 25px;padding-bottom: 10px">
<a class="layui-btn layui-btn-normal" style="background-color: rgba(0, 172, 156, 1);width: 200px" >确认审批</a>
</div>
</div>
<label style="display: block;width: 100%;height: 24px"></label>
</div>
</body>
</html>
<script>
//Demo
layui.use('form', function(){
var form = layui.form;
//监听提交
form.on('submit(formDemo)', function(data){
layer.msg(JSON.stringify(data.field));
return false;
});
});
</script>
<style>
body{
background-color: rgba(241, 241, 241, 1);
}
.box {
width: 90%;
margin-left: 5%;
height: auto;
margin-top: 20px;
/*border: 1px solid red;*/
}
.boxtext {
display: block;
width: 100%;
text-align: center;
height: 60px;
line-height: 60px;
font-weight: bold;
font-size: 20px;
border-bottom: 1px solid rgba(230, 230, 230, 1);
}
.banner{
margin-top: 10px;
width: 100%;
height: auto;
background-color: #fff;
padding-top: 10px;
padding-bottom: 10px;
}
</style>