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

请问一下主页的缩略图显示大小或者比例可以修改吗 #367

Open
vbskycn opened this issue Dec 29, 2023 · 2 comments
Open
Labels
问题/疑问 Further information is requested

Comments

@vbskycn
Copy link

vbskycn commented Dec 29, 2023

请教一下如何修改显示的比例,或者说裁剪的大小,因为我的图片都是800×538的,现在的比例看起来有点不协调,请问一下如何修改这个裁剪比例或者是说显示的比例

@vbskycn vbskycn added the 问题/疑问 Further information is requested label Dec 29, 2023
@Lvshujun0918
Copy link
Contributor

在主题的自定义样式代码里加入这几行即可,自行修改其中的宽和高

.pk-widget img {
    max-width: 100%;
    height: 80px;
    object-fit: cover;
    width: 120px;
}
.thumbnail img {
    width: 200px;
    height: 100px !important;
    object-fit: cover;
}

@vbskycn
Copy link
Author

vbskycn commented Mar 6, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
问题/疑问 Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants