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

iOS端一级标题显示有问题 #510

Closed
citratecycle opened this issue May 20, 2022 · 8 comments
Closed

iOS端一级标题显示有问题 #510

citratecycle opened this issue May 20, 2022 · 8 comments

Comments

@citratecycle
Copy link

PHP 版本:8.0.18
Kratos 版本:4.1.3
WordPress 版本:5.9.3
User Agent 信息:Mozilla/5.0 (iPhone; CPU iPhone OS 15_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.5 Mobile/15E148 Safari/604.1

image

可以看到一级标题过小

测试页面

@citratecycle
Copy link
Author

我看了一下这个应该不是iOS本身的问题,当页面长宽比逐渐变小,到1.1左右的时候,就会出现这个问题

@citratecycle
Copy link
Author

看了下,应该和这一行,在页面kuandu 小于768px的时候,一级标题的字号从34px缩小到22px。应该需要把二~六级标题都对应缩小才行。

另外这个css好像是托管在 https://cdn.seatonjiang.com/kratos/4.1.3/style.css?ver=4.1.3 这里的?我修改本地的style.css也没用来着。

@n0099
Copy link
Contributor

n0099 commented May 20, 2022

另外这个css好像是托管在 https://cdn.seatonjiang.com/kratos/4.1.3/style.css?ver=4.1.3 这里的?我修改本地的style.css也没用来着。

建议!important

@n0099
Copy link
Contributor

n0099 commented May 20, 2022

22/34=0.647058824

请问这到底缩小多少倍

@citratecycle
Copy link
Author

22/34=0.647058824

请问这到底缩小多少倍

屏幕截图 2022-05-21 003958
屏幕截图 2022-05-21 004040

我猜这个原意是只缩小主标题来着,但是实际上也影响了文章内标题

@citratecycle
Copy link
Author

另外这个css好像是托管在 https://cdn.seatonjiang.com/kratos/4.1.3/style.css?ver=4.1.3 这里的?我修改本地的style.css也没用来着。

建议!important

我试了一下,在style.css!impotant好像没用……我把“静态资源加速”关了它就读我本地的CSS了

@n0099
Copy link
Contributor

n0099 commented May 20, 2022

建议子主题

@seatonjiang
Copy link
Owner

这个问题修复了,但是不建议在文章中使用h1,因为标题已经是h1了,这样对收录不友好。

image

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

3 participants