Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

仅释义的显示 #341

Open
leon1025 opened this issue Aug 9, 2024 · 3 comments
Open

仅释义的显示 #341

leon1025 opened this issue Aug 9, 2024 · 3 comments

Comments

@leon1025
Copy link

leon1025 commented Aug 9, 2024

作者你好,卡片模板中对于glossary的定义,单一释义也将例句和词性(prep,adj,adv...)显示了出来。
可有仅释义的字段。
如:划词后,在卡片模板中仅显示红框的内容。因为希望制作卡片为:通过释义,回忆起单词的相关。
iShot_2024-08-09_23 18 55

附模板中对于glossary的显示内容
iShot_2024-08-09_23 22 37
或者您可以告诉我,请教如何更改模板中的这段html,做到只显示释义,或词性。

@ee4ga9d
Copy link

ee4ga9d commented Aug 11, 2024

修改模板如下,加粗为增加的代码:

**<style>.eng_tran {display: none; } .pos {display: none; }</style>**
{{glossary}}
效果如下: ![image](https://github.com/user-attachments/assets/de475cfb-4dd4-4788-9919-c0a84659e168)

@ee4ga9d
Copy link

ee4ga9d commented Aug 11, 2024

微信图片_20240811085509
微信图片_20240811085329

<style>.eng_tran {display: none; } .pos {display: none; }</style>

@leon1025
Copy link
Author

谢谢,问题解决了。的确是用css解决的。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants