Skip to content

修改译文字体大小 #313

Answered by bookfere
geekhuashan asked this question in Q&A
May 19, 2024 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

这个需求同 #98,修改译文字体样式的功能将来可能会实现。

目前你需要用 Calibre 的电子书编辑器功能打开翻译好的电子书,然后打开任意一个 CSS 文件,然后在末尾添加以下样式,然后保存即可。

*[lang=zh] {
    font-size: .8rem!important;
}

注意 lang=zh 要和实际的译文段落属性对应,随便打开一个 XHTML 检查一下即可。

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@geekhuashan
Comment options

@bookfere
Comment options

Answer selected by geekhuashan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #312 on May 20, 2024 15:20.