最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

css - Change post featured image

programmeradmin1浏览0评论

I would like to you ask you. I changed the dimensions of the thumbnail size in my theme. But in the categories, it looks stretched (I mean the images associate with a post in the category view). Problem is that some pictures are in landscape and others are in portrait format. The picture is not visible in full resolution. Is there any CSS command which can help me? What do you recommend?

I would like to you ask you. I changed the dimensions of the thumbnail size in my theme. But in the categories, it looks stretched (I mean the images associate with a post in the category view). Problem is that some pictures are in landscape and others are in portrait format. The picture is not visible in full resolution. Is there any CSS command which can help me? What do you recommend?

Share Improve this question asked Aug 9, 2020 at 15:46 Mike WoodsMike Woods 11 bronze badge
Add a comment  | 

1 Answer 1

Reset to default 0

Using background-size: cover instead of background-size: contain with a custom background-position ? It will cut images but preserve the same format/size for all.

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论