js实现一个数字运算测验考试效果代码

代码语言:html

所属分类:其他

代码描述:js实现一个数字运算测验考试效果代码

代码标签: js 数字 运算 测验 考试

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开


<!DOCTYPE html>
<html lang="en" >

<head>

  <meta charset="UTF-8">
<link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/animate.4.1.1.css">
  
<style>
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

:root {
  --panel-bg: #f6f3f9;
}

::placeholder {
  color: #ccc;
}

:focus::placeholder {
  color: transparent;
}

button {
  appearance: none;
  border: 0;
  background: indigo;
  color: #fff;
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
}

html,
html * {
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
}

body {
  font-size: 16px;
  padding: 0;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, Helvetica Neue, sans-serif;
  background-color: var(--panel-bg);
}

main {
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  text-align: center;
  background: #fff;
}

.generators {
  display: flex;
  flex-direction: column;
  background: var(--panel-bg);
  padding: 1rem 0.75rem;
  border-top-left-radius: 1.5rem;
  border-top-right-radius: 1.5rem;
}

.generators-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem;
}

.generators-row:not(:last-child) {
  border-bottom: 1px solid #ddd;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

.generators .icon {
  display: inline-block;
  width: 14px;
  margin-right: 4px;
  text-align: center;
}

.generators h3 {
  flex-grow: 1;
  text-align: left;
  margin: 0;
  font-weight: normal;
  font-size: 1rem;
}

.generators button.selected {
  background-color: #8900ed;
}

.quiz {
  margin: 3rem auto;
  f.........完整代码请登录后点击上方下载按钮下载查看

网友评论0