js+css实现儿童小学生数学运算答题小游戏代码
代码语言:html
所属分类:游戏
代码描述:js+css实现儿童小学生数学运算答题小游戏代码
代码标签: js+css 儿童 小学生 数学 运算 答题 小游戏 代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!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>
/* 引入可爱字体 */
@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&display=swap');
body {
margin: 0;
padding: 0;
/* 海洋风格背景 */
background: linear-gradient(180deg, #4facfe 0%, #00f2fe 100%);
font-family: "Microsoft YaHei", "Heiti SC", sans-serif;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
overflow: hidden;
user-select: none;
}
/* 漂浮的气泡动画背景 */
.bubble {
position: absolute;
bottom: -50px;
background-color: rgba(255, 255, 255, 0.2);
border-radius: 50%;
animation: rise 10s infinite ease-in;
z-index: 0;
}
@keyframes rise {
0% { bottom: -50px; transform: translateX(0); }
50% { transform: translateX(20px); }
100% { bottom: 110vh; transform: translateX(-20px); }
}
/* 游戏主容器 */
.game-card {
background-color: rgba(255, 255, 255, 0.95);
width: 90%;
max-width: 500px;
border-radius: 30px;
box-shadow: 0 15px 35px rgba(0, 50, 100, 0.3);
padding: 30px;
text-align: center;
position: relative;
z-index: 10;
border: 8px solid #a2d9ff;
}
/* 吉祥物 */
.mascot {
font-size: 70px;
mar.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0