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

閱讀模式樣式與自定義樣式不完全一致 #6826

Open
FuZhi-Sun opened this issue Nov 25, 2024 · 9 comments
Open

閱讀模式樣式與自定義樣式不完全一致 #6826

FuZhi-Sun opened this issue Nov 25, 2024 · 9 comments
Labels

Comments

@FuZhi-Sun
Copy link

描述这个错误

如圖,自定義樣式的字體大小和閱讀模式不一樣,在代碼塊尤其嚴重
屏幕截图 2024-11-25 194602
屏幕截图 2024-11-25 194622

复现步骤

沒有配置css,使用的僅有自定義樣式配置。補充:基本所有網站都這樣

其他相关说明

No response

操作系统

Windows

浏览器

Edge 128.0.2739.67

发生问题的网址

https://blog.csdn.net/soonfly/article/details/51131141

@Kenshin
Copy link
Owner

Kenshin commented Nov 26, 2024

Windows 确实存在你提到的情况,细节看 #1864

你可以试试切换不同的主题,看看能否解决?另外,字体无法生效的问题可以看 https://github.com/Kenshin/simpread/discussions?discussions_q=label%3Atheme

如果你对字体样式有要求的话,建议使用上面的链接解决。

另外

  1. 代码段则是另外一个问题,代码段规则太多,导致并不能很完美的获取。
  2. 你使用了代码高亮,所以字体大小是被代码高亮「固定」了,当然也可以使用自定义样式解决。

@FuZhi-Sun
Copy link
Author

我試了一下,直接在閱讀模式中的調整字體大小可行,不會被自定義的覆蓋。接下來要試試css調整一下代碼部分。

@Kenshin
Copy link
Owner

Kenshin commented Nov 26, 2024

👍

留意我给你的链接,里面有很多(现成的)方案

@FuZhi-Sun
Copy link
Author

求敎一下怎麼導出自定義樣式的配置文件?

@Kenshin
Copy link
Owner

Kenshin commented Nov 26, 2024

导出配置文件(选项页 → 共通 → 导出配置文件),里面就会包含自定义样式。

@FuZhi-Sun
Copy link
Author

把整個read裏面的東西複製進去了,感覺沒用?是寫的不對嗎?

@Kenshin
Copy link
Owner

Kenshin commented Nov 26, 2024

没明白你的问题。 😂

@FuZhi-Sun
Copy link
Author

"read":{
"actionbar":{},
"auto":false,
"cleanup":true,
"controlbar":true,
"custom":{
"art":{
"color":"#235790",
"fontFamily":"High Tower Text, TsukuOLdmin Kangxi",
"fontSize":"23",
"fontWeight":"400",
"letterSpacing":"",
"lineHeight":"",
"textIndent":"",
"wordSpacing":""
},
"code":{"fontFamily":"Cascadia Mono","fontSize":"20"},"css":"","desc":{"color":"","fontFamily":"","fontSize":""},"pre":{"textShadow":""},"title":{"color":"","fontFamily":"High Tower Text,WenYue GuTiFangSong F","fontSize":""}},}
把這一段粘貼在「自定義css」中,不起效果

@Kenshin
Copy link
Owner

Kenshin commented Nov 26, 2024

当然没效果了… 😂

建议看下文档,每个功能都有对应的文档说明。

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

No branches or pull requests

2 participants