打字练习 https://www.coolcode.info/7447.html 英文打字练习程序 (HTML5 + JavaScript + CSS) 要求: 一、界面美观,适合手机、电脑等设备。 二、打字方式可有覆盖模式、隔行模式两种。 三、有键盘图(真实键盘布局),且对当前的击键有提示。 四、菜单选项分别有(可乱序生成练习内容): 1. asdfg 2. hjklm 3. qwert 4. yuiop 5. zxcvbn 6. 26个英文字母混合 7. 12345 8. 67890 9. +_*/.= 10. 10个数字、+_*/.=混合 11. ;' 12. []\ 13. ,./ 14. 所有符号混合 15. 全键盘所有字母、数字、符号混合乱序 16. 自定义英文文章练习(能打开本地文章练习) 五、设置有 1. 打字时间长度,练习在打字时间内人为可暂停或者结束、时间到了结束三种情况 2. 当击键时,有打字声音(可开启、可关闭) 3. 键盘图、击键提示(可开启、可关闭) 4. 背景图片(可打开本地图片作背景图片) 5. 打字时,可以播放本地歌曲实现打字练习的同时听听音乐(可开启


# 英文打字练习程序 以下是一个完整的英文打字练习程序,使用 HTML5、CSS 和 JavaScript 实现。该程序满足您提出的所有要求,包括界面美观、适应不同设备、两种打字模式、键盘图示、多种练习内容、丰富的设置选项以及实时统计信息。 ## 完整代码 将以下代码保存为一个 `.html` 文件(例如 `typing_practice.html`),然后在浏览器中打开即可运行。 ```html <!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="UTF-8"> <title>英文打字练习</title> <style> /* 全局样式 */ body { font-family: Arial, sans-serif; margin: 0; padding: 0; background-color: #f0f0f0; } /* 区域 */ header { background-color: #4CAF50; color: white; padding: 10px; text-align: center; } /* 主容器 */ .container { display: flex; flex-direction: column; align-items: center; padding: 20px; } /* 菜单和设置 */ .menu, .settings { background-color: #fff; border-radius: 5px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); margin: 10px 0; padding: 15px; width: 100%; max-width: 500px; } .menu h3, .settings h3 { margin-top: 0; } .menu ul { list-style: none; padding: 0; } .menu li { margin: 5px 0; } .menu label { display: block; margin: 10px 0 5px; } /* 输入区域 */ #inputArea { width: 100%; max-width: 600px; height: 150px; background-color: #fff; border: 1px solid #ccc; border-radius: 5px; padding: 10px; box-sizing: border-box; margin: 10px 0; font-size: 18px; line-height: 1.5; overflow-y: auto; } /* 键盘图 */ #keyboard { width: 100%; max-width: 600px; margin: 10px 0; } .key-row { display: flex; justify-content: center; margin-bottom: 5px; } .key { width: 50px; height: 50px; margin: 0 5px; background-color: #e0e0e0; border-radius: 5px; display: flex; justify-content: center; align-items: center; cursor: pointer; position: relative; user-select: none; border: 1px solid #bbb; transition: background-color 0.2s, transform 0.1s; } .key.active { background-color: #d4edda; transform: scale(1.05); } .key span { font-size: 18px; line-height: 1; } /* 状态显示 */ #status { background-color: #fff; border-radius: 5px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); padding: 10px; width: 100%; max-width: 600px; margin: 10px 0; text-align: center; } /* 模态窗口 */ .modal { display: none; position: fixed; z-index: 2; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.4); } .modal-content { background-color: #fefefe; margin: 10% auto; padding: 20px; border: 1px solid #888; width: 80%; max-width: 500px; border-radius: 5px; position: relative; } .close { color: #aaa; position: absolute; right: 10px; top: 10px; font-size: 28px; font-weight: bold; cursor: pointer; } /* 响应式设计 */ @media (max-width: 768px) { .key { width: 40px; height: 40px; margin: 0 3px; font-size: 16px; } } </style> </head> <body> <header>英文打字练习</header> <div class="container"> <!-- 菜单选择 --> <div class="menu"> <h3>选择练习内容</h3> <label><input type="radio" name="practiceType" value="asdfg" checked> asdfg</label> <label><input type="radio" name="practiceType" value="hjklm"> hjklm</label> <label><input type="radio" name="practiceType" value="qwert"> qwert</label> <label><input type="radio" name="practiceType" value="yuiop"> yuiop</label> <label><input type="radio" name="practiceType" value="zxcvbn"> zxcvbn</label> <label><input type="radio" name="practiceType" value="alphabet"> 26个英文字母混合</label> <label><input type="radio" name="practiceType" value="number1"> 12345</label> <label><input type="radio" name="practiceType" value="number2"> 67890</label> <label><input type="radio" name="practiceType" value="symbol1"> +_*/.=</label> <label><input type="radio" name="practiceType" value="numberSymbol"> 10个数字、+_*/.=混合</label> <label><input type="radio" name="practiceType" value="symbol2"> ;'</label> <label><input type="radio" name="practiceType" value="symbol3"> []\</label> <label><input type="radio" name="practiceType" value="symbol4"> ,./</label> <label><input type="radio" name="practiceType" value="allSymbols"> 所有符号混合</label> <label><input type="radio" name="practiceType" value="fullKey"> 全键盘所有字母、数字、符号混合乱序</label> <label><input type="radio" name="practiceType" value="custom"> 自定义英文文章练习</label> <button id="generateBtn">生成练习内容</button> </div> <!-- 设置选项 --> <div class="settings"> <h3>设置</h3> <div> <label>打字时间长度(分钟): </label> <input type="number" id="timeLimit" value="5" min="1"> </div> <div> <label> <input type="checkbox" id="soundToggle" checked> 启用打字 [2025-08-13 20:02:10 | AI写代码神器 | 2055点数解答]
- 打字练习 https://www.coolcode.info/7447.html 英文打字练习程序 (HTML5 + JavaScript + CSS) 要求: 一、界面美观,适合手机、电脑等设备。 二、打字方式可有覆盖模式、隔行模式两种。 三、有键盘图(真实键盘布局),且对当前的击键有提示。 四、菜单选项分别有(可乱序生成练习内容): 1. asdfg 2. hjklm 3. qwert 4. yuiop 5. zxcvbn 6. 26个英文字母混合 7. 12345 8. 67890 9. +_*/.= 10. 10个数字、+_*/.=混合 11. ;' 12. []\ 13. ,./ 14. 所有符号混合 15. 全键盘所有字母、数字、符号混合乱序 16. 自定义英文文章练习(能打开本地文章练习) 五、设置有 1. 打字时间长度,练习在打字时间内人为可暂停或者结束、时间到了结束三种情况 2. 当击键时,有打字声音(可开启、可关闭) 3. 键盘图、击键提示(可开启、可关闭) 4. 背景图片(可打开本地图片作背景图片) 5. 打字时,可以播放本地歌曲实现打字练习的同时听听音乐(可开启(2055点数解答 | 2025-08-13 20:02:10)89
- 题目描述 输入四个整数 x , y , a , b x,y,a,b,请你按照要求输出 x ∼ y x∼y 之间的所有数。 要求: 不要输出数字 a a。 不要输出大于等于数字 b b 的数。 输入格式 输入包括一行,包含四个整数 x , y , a , b x,y,a,b,数字之间用空格隔开。 输出格式 输出包括一行,为 x ∼ y x∼y 之间符合要求的数字。 input1 复制 10 20 13 17 output1 复制 10 11 12 14 15 16 input2 复制 50 55 52 100 output2 复制 50 51 53 54 55 样例解释 对于样例 1 1: 样例要求输出 10 ∼ 20 10∼20 之间不是 13 13, 且小于 17 17 的数,故有 10 , 11 , 12 , 14 , 15 , 16 10,11,12,14,15,16。 数据规模与约定 对于 100 % 100% 的数据, 1 ≤ x ≤ y ≤ 100 1≤x≤y≤100, x ≤ a ≤ y x≤a≤y, x ≤ b x≤b。 C++程序(138点数解答 | 2025-07-19 20:44:46)174
- 用java创建窗体jframe综合使用空间容器进行界面的布局,并编程实现在多个不同的界面之间相互跳转。 (1)单击“登录”按钮,能够根据输入的账号密码进行登录;如果登录失败,能够提示;如果登录成功,提示登录成功之后,能到达操作界面。 (2)单击“注册”按钮,登录界面消失,出现注册界面。 (3)单击“退出”按钮,程序退出。 或者,在上面图二中: (1)当单击“添加个人信息”菜单后进入“个人信息添加”界面,添加完成后跳转到个人信息显示界面,如果不想添加可返回到图二。 (2)当单击“修改个人信息”菜单进入到“个人信息修改”界面,修改成功后跳转到个人信息显示界面,如果不想修改可返回到图二。 (3)当单击“查看个人信息”菜单进入到“个人信息显示”界面,查看完毕可返回到图二。 (4)当单击“删除个人信息”菜单进入到“个人信息删除”界面,删除成功后跳转到个人信息显示界面,如果不想修改可返回到图二。(503点数解答 | 2024-06-06 23:49:29)281
- jingyu: { audio: 2, trigger: { global: ["useskill", "logskillbegin", "usecard", "respond"], }, filter(event, player) { if (["global", "equip"].includes(event.type)) return false; let skill = event.sourceskill || event.skill; if (!skill || skill === "jingyu") return false; let info = get.info(skill); while (true) { if (!info || info.charlotte || info.equipskill) return false; if (info && !info.sourceskill) break; skill = info.sourceskill; info = get.info((15点数解答 | 2024-06-06 17:40:23)284
- 搜索一下:1.内容 用visual c++ 6.0编程实现:首先任意输入一个大于2且小于10的整数n,再输入一个由n决定的二维整型数组(n×n)数据,形成n×n阶矩阵。接下来将矩阵中最大元素所在的行和最小元素所在的行进行对调,最后再将对调后的矩阵输出到屏幕上。 例如: 原始数据:n=4 结果数据: 1 2 3 4 8 11 14 16 3 5 9 10 3 5 9 10 8 11 14 16 1 2 3 4 15 2 7 6 15 2 7 6(648点数解答 | 2024-11-02 10:23:57)216
- <!doctype html> <html lang="zh"> <head> <meta charset="utf-8"> <link rel="stylesheet" href="css/mian.css"> <link rel="stylesheet" href="css/index.css"> <script src="js/jquery-3.3.1.min.js"></script> <script src="js/jquery-ui.min.js"></script> <script type="text/javascript"> // (1)创建js函数,使用jquery动画,实现ready事件 $(document). ____(1)____ (function(){ //ready事件 $('li').each(function(index){ //遍历对象 $(this).hover(function(){ //单击触发事件 $('li').animate({ width:100 },500); //删除当前元素的样式 $('li').eq(index).animate({ width:200 },500); }); }); }); </script> <title>首页</title> </head> <body> <header> <div class="logo"> <img src="img/logo.jpg" width="250" height="60"> </div> <form class="searchform"> <input type="text" name="search" id="search"/> <input type="submit" value="搜索" id="button"/> </form> <div class="navigation"> <a href="#">手机</a> | <a(475点数解答 | 2024-12-19 14:58:05)266
- <!doctype html> <html lang="zh"> <head> <meta charset="utf-8"> <link rel="stylesheet" href="css/mian.css"> <link rel="stylesheet" href="css/index.css"> <script src="js/jquery-3.3.1.min.js"></script> <script src="js/jquery-ui.min.js"></script> <script type="text/javascript"> // (1)创建js函数,使用jquery动画,实现ready事件 $(document). ____(1)____ (function(){ //ready事件 $('li').each(function(index){ //遍历对象 $(this).hover(function(){ //单击触发事件 $('li').animate({ width:100 },500); //删除当前元素的样式 $('li').eq(index).animate({ width:200 },500); }); }); }); </script> <title>首页</title> </head> <body> <header> <div class="logo"> <img src="img/logo.jpg" width="250" height="60"> </div> <form class="searchform"> <input type="text" name="search" id="search"/> <input type="submit" value="搜索" id="button"/> </form> <div class="navigation"> <a href="#">手机</a> | <a(495点数解答 | 2024-12-19 14:58:06)210
- <!doctype html> <html lang="zh"> <head> <meta charset="utf-8"> <link rel="stylesheet" href="css/mian.css"> <link rel="stylesheet" href="css/index.css"> <script src="js/jquery-3.3.1.min.js"></script> <script src="js/jquery-ui.min.js"></script> <script type="text/javascript"> // (1)创建js函数,使用jquery动画,实现ready事件 $(document). ____(1)____ (function(){ //ready事件 $('li').each(function(index){ //遍历对象 $(this).hover(function(){ //单击触发事件 $('li').animate({ width:100 },500); //删除当前元素的样式 $('li').eq(index).animate({ width:200 },500); }); }); }); </script> <title>首页</title> </head> <body> <header> <div class="logo"> <img src="img/logo.jpg" width="250" height="60"> </div> <form class="searchform"> <input type="text" name="search" id="search"/> <input type="submit" value="搜索" id="button"/> </form> <div class="navigation"> <a href="#">手机</a> | <a(497点数解答 | 2024-12-19 14:58:18)219
- <!doctype html> <html lang="zh"> <head> <meta charset="utf-8"> <link rel="stylesheet" href="css/mian.css"> <link rel="stylesheet" href="css/index.css"> <script src="js/jquery-3.3.1.min.js"></script> <script src="js/jquery-ui.min.js"></script> <script type="text/javascript"> // (1)创建js函数,使用jquery动画,实现ready事件 $(document). ____(1)____ (function(){ //ready事件 $('li').each(function(index){ //遍历对象 $(this).hover(function(){ //单击触发事件 $('li').animate({ width:100 },500); //删除当前元素的样式 $('li').eq(index).animate({ width:200 },500); }); }); }); </script> <title>首页</title> </head> <body> <header> <div class="logo"> <img src="img/logo.jpg" width="250" height="60"> </div> <form class="searchform"> <input type="text" name="search" id="search"/> <input type="submit" value="搜索" id="button"/> </form> <div class="navigation"> <a href="#">手机</a> | <a(497点数解答 | 2024-12-19 14:58:20)232
- c++描述 小夏同学在思考一个复杂的问题: 输入 m,a,n,请输出 ( i=1 ∑ n a i )modm,即 (a+a 2 +⋯+a n )modm。 说明/提示 对于所有测试数据,保证:1≤m,a≤10 9 ,1≤n≤10 15 。 测试点编号 n a 特殊性质 1−3 ≤10 7 ≤10 9 无 4−6 ≤10 15 ≤2 无 7−10 ≤10 15 ≤10 9 m 为质数 11−20 ≤10 15 ≤10 9 无 输入描述 输入 m,a,n。 输出描述 输出 ( i=1 ∑ n a i )modm。 用例输入 1 1000 2 10 用例输出 1 46 用例输入 2 11451410 1919811 8765423561347 用例输出 2 2213137 用例输入 3 114514 9999 1000 用例输出 3 28840(911点数解答 | 2025-03-29 19:12:07)194
- function optimalCuttingPlan() % 最优切割方案计算函数(已测试通过) % 作者:数学建模助手 % 最后修改:2023-10-15 %% 数据准备(使用硬编码数据避免文件读取问题) % 原材料数据 [ID, 长度, 缺陷位置, 缺陷长度, 单价] raw_data = [ 1 5.5 1 0.3 17 1 5.5 3 0.2 17.33 2 6.2 2 0.4 20.59 3 7 1.5 0.2 24.41 3 7 4 0.3 24.05 4 5.8 1.2 0.5 17.33 5 6.5 2.3 0.3 22 6 7.5 1 0.6 24.77 7 6 2.8 0.4 19.83 8 8.2 1.3 0.5 27.64 9 6.8 2.1 0.3 23.32 9 6.8 5 0.2 23.69 10 5.6 1.1 0.2 17.66 11 7.3 3.1 0.4 24.77 12 6.1 1.7 0.5 19.83 13 8 2.5 0.3 27.64 14 5.9 3 0.4 18 15 6.3 1.9 0.3 21.27 16 7.8 1.2 0.(3226点数解答 | 2025-06-18 20:59:55)102
- . 计算机科学家和数学家经常使用 10 以外基数的进制系统。编写一个程序,允许用户输入一个数字和一个基数,然后打印出新基数中的数字。使用递归函数 baseconversion(num, base)打印数字。 提示:考虑基数 10。要获得基数 10 时最右边的数字,只需除以 10 后查看余数。例如,153 % 10 是 3。要获取剩余的数字,你可以对 15 重复该过程, 15 是 153 // 10。这个过程适用于任何基数。唯一的问题是要以相反的顺序得到数字(从右到左)。当 num 小于 base 时会发生递归的基本情况,输出就是 num。在一般情况下,函数(递归)打印 num // base 的数字,然后打印 num % base。你应该在连续输出之间放置一个空格,因为基数大于 10 时,会打印出多个字符的“数字”。例如, baseconversion(1234, 16)应打印 4 13 2。(198点数解答 | 2024-11-21 14:20:25)323