首页 > 其他分享 >手机H5考试页面

手机H5考试页面

时间:2024-03-06 23:45:16浏览次数:22  
标签:form color layui 1890ff H5 10px margin 考试 页面

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no" />
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <meta name="apple-mobile-web-app-status-bar-style" content="black" />
    <meta name="format-detection" content="telephone=yes" />
    <title>考试</title>
    <script src="jquery.min.js"></script>
    <link href="layui/css/layui.css" rel="stylesheet" />
    <script src="layui/layui.js"></script>
    <style type="text/css">
        body {
            margin-bottom: 58px;
        }

        .layui-form-checkbox[lay-skin=primary] span {
            color: #000;
        }

        .layui-form-radio:hover *, .layui-form-radioed, .layui-form-radioed > i {
            color: #1890ff;
        }

        .layui-form-radio > i:hover, .layui-form-radioed > i {
            color: #1890ff;
        }

        .layui-form-checked i, .layui-form-checked:hover i {
            color: #1890ff;
        }

        .layui-form-checkbox[lay-skin=primary]:hover i {
            border-color: #1890ff;
        }

        .layui-form-checked[lay-skin=primary] i {
            border-color: #1890ff !important;
            background-color: #1890ff;
        }

        .layui-field-title {
            margin: 10px 0px;
            margin-top: 10px !important;
            text-align: left;
        }

        .layui-elem-field legend {
            margin-left: 20px;
            font-size: 18px;
        }

        .layui-form .layui-container {
            margin: 10px 0px;
        }

        .extm-more .layui-row {
            margin: 10px 0px;
        }

        .exam-header {
            margin-top: 15px;
            text-align: center;
        }

        .exam-title {
            font-size: 16px;
        }

        .exam-btn-group {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            padding: 10px;
            background-color: #fff;
            z-index: 999;
        }
    </style>
</head>
<body>
    <div class="layui-container">
        <div class="layui-row exam-header">
            <label id="lbPaperName" style="padding-left: 0; font-size: 20px;">普通测试</label>
            <label style="font-weight: normal;">总分:<span id="lbPaperScore">20</span></label>
        </div>
        <form class="layui-form" action="">
            <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
                <legend>单选题</legend>
            </fieldset>
            <div class="layui-container">
                <div class="layui-row">
                    <p class="exam-title">1、 被尊称为诗圣的人是</p>
                </div>
                <div class="layui-row">
                    <input type="radio" name="sex" value="" title="A 、杜牧">
                </div>
                <div class="layui-row">
                    <input type="radio" name="sex" value="" title="B 、李白">
                </div>
                <div class="layui-row">
                    <input type="radio" name="sex" value="" title="C 、王维">
                </div>
                <div class="layui-row">
                    <input type="radio" name="sex" value="" title="D 、杜甫">
                </div>
            </div>
            <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
                <legend>多选题</legend>
            </fieldset>
            <div class="layui-container extm-more">
                <div class="layui-row">
                    <p class="exam-title">1、 下列关于气球的说法正确的是:</p>
                </div>
                <div class="layui-row">
                    <input type="checkbox" lay-skin="primary" name="like" value="" title="A 、气球是靠热空气升空的">
                </div>
                <div class="layui-row">
                    <input type="checkbox" lay-skin="primary" name="like" value="" title="B 、氢气球主要作为高空探测使用,不可载人">
                </div>
                <div class="layui-row">
                    <input type="checkbox" lay-skin="primary" name="like" value="" title="C 、可通过气动舵面进行方向控制">
                </div>
                <div class="layui-row">
                    <input type="checkbox" lay-skin="primary" name="like" value="" title="D 、多数热气球可载人">
                </div>
            </div>
            <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
                <legend>判断题</legend>
            </fieldset>
            <div class="layui-container">
                <div class="layui-row">
                    <p class="exam-title">1、 当环境不断变化时,计划也要不断调整,因此计划的意义不大。</p>
                </div>
                <div class="layui-row">
                    <input type="radio" name="isok" value="" title="正确">
                    <input type="radio" name="isok" value="" title="错误">
                </div>
            </div>
            <div class="layui-row exam-btn-group">
                <button type="button" style="width:100%;" class="layui-btn layui-btn-normal">提交试卷</button>
            </div>
        </form>
    </div>
</body>
</html>

 

标签:form,color,layui,1890ff,H5,10px,margin,考试,页面
From: https://www.cnblogs.com/LiuCabbage/p/18057913

相关文章

  • 微信小程序开发:页面分享卡片、风格选择、通道启用等可配置
    上文说到,我们部署了定时任务,但是有个地方忘记在上文写了,这里补上,就是定时任务的超时时间问题,超时时间有7200秒: 我们改成7100秒: 再把云函数调用的云对象的超时时间也改下: 超时时间多一点,因为可能调用往返也需要一点时间,我们把这个时间稍微调大一点。再把云函数的定......
  • el-tree数据量过大导致页面卡顿
    问题:el-tree等树形结构,当数据量非常大,渲染会很慢解决方案:懒加载方法:设置lazy属性为true,当点击父级节点时,再通过load方法加载子列表。优点:使用简单。缺点:不能做回显,无法展开全部节点。虚拟列表方法:使用插件或者自己实现一个虚拟列表(推荐:https://sangtian152.github.io/v......
  • MATLAB数据挖掘用改进的K-Means(K-均值)聚类算法分析高校学生的期末考试成绩数据
    全文链接:http://tecdat.cn/?p=30832原文出处:拓端数据部落公众号本文首先阐明了聚类算法的基本概念,介绍了几种比较典型的聚类算法,然后重点阐述了K-均值算法的基本思想,对K-均值算法的优缺点做了分析,回顾了对K-均值改进方法的文献,最后在Matlab中应用了改进的K-均值算法对数据进行了......
  • vue切换组件的显示以及父页面和组件的通讯
    在Vue.js中,切换组件的显示通常使用v-if、v-else-if、v-else或者v-show指令来实现。v-if只适合固定值,如果要动态切换就不能做到 <template><div><!--使用v-if和v-else来根据条件切换组件--><ComponentAv-if="condition"></ComponentA><ComponentBv-......
  • 【HarmonyOS】一文带你快速实现页面禁止截屏功能
    ​【关键字】HarmonyOS、禁止页面截屏、窗口、隐私模式、setWindowPrivacyMode 1、写在前面我们在开发HarmonyOS应用的过程中可能会遇到这样的需求:可能某一个页面中的数据对用户而言是非常重要的,因此需要针对该页面做相应的保护操作,常见的就是禁止该页面被截屏,那么在HarmonyO......
  • tomcat8.5+ windows中html页面及控制台中文乱码问题解决办法
    tomcat8.5+windows中html页面及控制台中文乱码问题解决办法————————————————版权声明:本文为博主原创文章,遵循CC4.0BY-SA版权协议,转载请附上原文出处链接和本声明。原文链接:https://blog.csdn.net/onemy/article/details/106215384 https://blog.csdn.......
  • 中英文版本如何确保页面元素统一?
    使用资源文件:将所有文字内容(如标签、按钮文本、错误消息等)存储在单独的资源文件中,而不是直接硬编码在代码中。对于每种语言,都应有对应的资源文件,然后根据用户的语言偏好加载相应的资源文件。字符编码:确保你的网站或应用程序使用统一的字符编码(如UTF-8),以支持各种语言的文......
  • 管理端根据角色,获取动态路由,动态引用页面的时候,Vue2和vue3的使用方法
    1、vue2使用的方法,重点注意引用组件的时候使用的requirelettemp=[];children.map((itemChild)=>{letvisible=(itemChild.menuType=='F')?true:false;temp.push({path:itemChild.path,component:resolve=>require([@/views/${itemChild.component}],resolve),meta:......
  • 利用python的http.server定制自己的页面和响应
    pythonhttp.server简介pythonhttp.server是一个简单的基础的httpserver,默认查找网站根目录的index.html文件,如果没有index.html文件,则放回网站根目录文件视图这里我们想对http.server进行修改,实现我们特定的需求,如果只变化html确实能展现不能的静态页面,但是没有办法进行交互,如......
  • ElementPlus+Vue3使用cdn方式编写页面及引入图标
    完整代码1<!DOCTYPEhtml>2<htmllang="en">34<head>5<metacharset="UTF-8">6<metaname="viewport"content="width=1000,initial-scale=1.0">7<title>模型管理&......