======输入型填空题模板====== 本模板主要用于构建填空题。用户提供需要背诵的文段,Anki将根据挖空率随机挖空,最终,用户通过填空来达到背诵的目的。具体效果如下: :zh:anki:cardtemplate:输入填空题模板-出师表示意.png :zh:anki:cardtemplate:输入填空题模板-献钱尚父.png :zh:anki:cardtemplate:输入填空题模板-笑面人示意.png =====功能介绍===== 为了适应不同的应用场景,模板设计了几种语法。 ====跳过挖空==== 使用''(())''包裹的内容不参与挖空 ====指定挖空==== 使用''[[]]''语法表示该文段必须被挖空,并且在挖去这些文段后,才计算剩余的挖空率 ====指定随机挖空==== 有时候我们想背诵的诗句往往有强关联,比如''满堂花醉三千客,一剑霜寒十四州'',我们想背诵第一句,对第二句挖空,或者想背诵第二句而对第一句挖空,这时候可以使用''[[满堂花醉三千客,|一剑霜寒十四州]]'',这个语法将对第一句或者第二句随机挖空 ====错误处理==== 为了方便用户和开发者交流,当用户把''挖空率''设置为999时,anki将输出挖空前的原始文本和挖空后的文本。你可以把这些信息粘贴在下面的评论区,开发者根据这些信息进行错误处理 =====源码===== 下面提供模板的源码。 ====正面====
{{text:标题}}
{{text:作者}}
{{text:文段}}
====背面====
{{text:语言}}
{{text:文段}}
{{#笔记}}
{{笔记}}
{{/笔记}}
====样式==== @import url('https://cdn.jsdelivr.net/npm/lxgw-wenkai-screen-web/style.css?cache=1y'); .card { font-family: "LXGW WenKai Screen","PingFang SC", "Microsoft YaHei", arial, sans-serif; font-size: 20px; color: #333; background-color: white; padding: 15px; line-height: 1.6; } .sentence { font-size: 26px; margin: 20px 0; line-height: 2.2; /* 增加行高,给长输入框留出空间 */ text-align: justify; } /* 核心:输入框样式优化 */ .answer-box { border: none; border-bottom: 2px solid #000; /* 加粗底线,更有辨识度 */ background-color: #f8f9fa; /* 淡淡的底色,让长格子一眼可见范围 */ text-align: center; outline: none; font-size: 26px; font-family: inherit; margin: 0 4px; padding: 0 5px; transition: all 0.2s; max-width: 95%; /* 关键:防止超长句子在手机上横向溢出 */ border-radius: 4px 4px 0 0; } /* 聚焦时的视觉反馈 */ .answer-box:focus { background-color: #e9ecef; border-bottom-color: #007bff; /* 聚焦时底线变蓝 */ } .right-answer { color: #28a745 !important; background-color: #e8f5e9 !important; border-bottom-color: #28a745 !important; } .wrong-answer { color: #dc3545 !important; background-color: #ffebee !important; border-bottom-color: #dc3545 !important; } .title { font-size: 32px; font-weight: bold; text-align: center; margin-bottom: 10px; } .author { font-size: 18px; color: #666; text-align: center; margin-bottom: 20px; } .translation { font-size: 20px; margin: 10px 0; color: #555; border-left: 4px solid #ddd; padding-left: 10px; } =====下载===== 为方便用户,本站提供导出的牌组下载 ~~DISCUSSION~~