Skip to content
Discussion options

You must be logged in to vote

你好,大致思路是:

  1. 在正面新增一个带拼写检查框的 {{type:kana:VocabFurigana}}
  2. 删除掉背面现有的 {{kana:VocabFurigana}}
  3. 给拼写检查框设置一个CSS样式。

实现效果:

CleanShot.2026-01-31.at.00.41.51.mp4

可以参考下面的图片和代码(CSS部分是AI生成的,你可以根据实际情况进行调整)

  1. 在正面模板图示处增加:
  <section class="Answer">
    {{type:VocabFurigana}}
  </section>
  1. 删除背面模板图示的部分
  1. 在样式区增加拼写检查框的样式:
/* --- Type Answer 输入框样式 --- */
input#typeans {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  background-color: var(--canvas-inset);
  color: var(--fg);
  font-family: inherit; /* 继承卡片字体 */
  font-size: var(--text-2xl); /* 保持和原本假名一致的大小 */
  padding: 8px 12px;
  margin: 0;
  outline: none;
  transition: all 0.2s e…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by 5mdld
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #547 on January 30, 2026 15:47.