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

建议:对首页格言设置自动适配宽度 #186

Closed
AH-dark opened this issue Jul 23, 2021 · 1 comment
Closed

建议:对首页格言设置自动适配宽度 #186

AH-dark opened this issue Jul 23, 2021 · 1 comment
Assignees

Comments

@AH-dark
Copy link
Contributor

AH-dark commented Jul 23, 2021

我的简单实现是

@media screen and (max-width: 5000px) {
    h1#theFirstPageSayContent {
        font-size: 4em;
    }
}

@media screen and (max-width: 2000px) {
    h1#theFirstPageSayContent {
        font-size: 3.5em;
    }
}

@media screen and (max-width: 1000px) {
    h1#theFirstPageSayContent {
        font-size: 3em;
    }
}

@media screen and (max-width: 480px) {
    h1#theFirstPageSayContent {
        font-size: 2em;
    }
}

@media screen and (max-width: 340px) {
    h1#theFirstPageSayContent {
        font-size: 1.5em;
    }
}

希望作者能给出更好的支持百分比的实现方式
ヾ(◍°∇°◍)ノ゙

@AH-dark
Copy link
Contributor Author

AH-dark commented Jul 23, 2021

小屏手机字太大,大屏电脑字太小

@yrccondor yrccondor self-assigned this Jul 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants