title: Anki 自用卡片模板分享 date: 2015-11-23 20:34:38 categories: - 触类旁通 tags: - Anki - HTML - CSS permalink: anki-templates ---
{{Front}}
{{Tags}}
``` ### 样式 ``` css .card { font-family: 方正中雅宋_GBK; font-size: 1em; text-align: center; } .Chinese { font-family: 方正中雅宋_GBK; font-size: 1.5em; text-align: justify; background-color: #edffc4; border-radius: 1.2em 0.3em; padding : 0.5em; } .English { font-family: 方正中雅宋_GBK; font-size: 1.5em; text-align: justify; background-color: #ffe4f4; border-radius: .3em; padding: .5em; } .front { font-size: 1.8em; } .item_eng { padding-top : 5%; color: orange; font-size: 2em; } .tag { display: block; position: fixed; left: 3%; bottom: 0; color: gray; font-size: 1.1em; } a { color: grey; } .title { display: block; position: fixed; left: 3%; bottom: 0; color: gray; font-size: 1em; } .author { display: block; position: fixed; right: 3%; bottom: 0; color: gray; font-size: 1em; } .link { display: block; position: fixed; right: 3%; bottom: 0; color: gray; font-size: 1.1em; font-style: italic; } ``` ### 背面模板 ``` html
{{Front}}
{{Chinese}}
{{English}}
Reference Site
{{Tags}}
``` ## 字体下载 测试了不少字体,感觉 [方正中雅宋_GBK](http://www.daimg.com/download.php?open=2&id=12741&uhash=1eb7c629071a1341f83bc53b) 和这个软件最匹配。当然,大家可以自行修改`font-family`,换用喜欢的字体。