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

高分辨率2k&4k屏幕适配 #922

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 52 additions & 2 deletions source/css/matery.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
}

/*大屏幕下(桌面类)的样式*/
@media only screen and (min-width: 993px) {
@media only screen and (min-width: 993px) and (max-width: 1920px) {
.container {
width: 90%;
max-width: 1125px;
Expand All @@ -26,13 +26,63 @@
width: 100%;
}

.post-container {
.post-container {
width: 90%;
margin: 0 auto;
max-width: 1250px;
}
}

/*大屏幕下(2k桌面类)的样式*/
@media only screen and (min-width: 1921px) and (max-width: 2560px) {
.container {
width: 90%;
max-width: 1525px;
}

.head-container {
position: absolute;
padding: 0 30px;
width: 100%;
}

.post-container {
width: 90%;
margin: 0 auto;
max-width: 1750px;
}

.recommend .post-card {
height: 350px !important;
max-height: 350px !important;
}
}

/*大屏幕下(4k桌面类)的样式*/
@media only screen and (min-width: 2561px) {
.container {
width: 90%;
max-width: 1525px;
}

.head-container {
position: absolute;
padding: 0 30px;
width: 100%;
}

.post-container {
width: 90%;
margin: 0 auto;
max-width: 2250px;
}

.recommend .post-card {
height: 380px !important;
max-height: 380px !important;
}
}

body {
background-color: #eaeaea;
margin: 0;
Expand Down