我很难得到图像的大小。尺寸你现在看到的尺寸现在适合,但它们不是按比例缩放的。如果图片太大,你知道如何剪切图片吗?图像相同的大小 - 缩放比例
.post-img {
\t margin-bottom:20px;
}
.post-img img {
\t max-width:100%;
\t height:245px !important;
}
我很难得到图像的大小。尺寸你现在看到的尺寸现在适合,但它们不是按比例缩放的。如果图片太大,你知道如何剪切图片吗?图像相同的大小 - 缩放比例
.post-img {
\t margin-bottom:20px;
}
.post-img img {
\t max-width:100%;
\t height:245px !important;
}
图像设置为背景。
Background-size: cover;
Background-position: center;
Background-repeat: no-repeat;
对不起,忘了说它的一个WordPress站点: http://vintagemaedchen.de 无法将其设置为背景 –
您可以获取缩略图网址并将其用作背景的内联样式。 – Sjoerd
overflow:hidden; – Craveiro