gpt4 book ai didi

css - 屏幕分辨率 css 上的图像大小

转载 作者:行者123 更新时间:2023-11-28 08:05:58 24 4
gpt4 key购买 nike

在我的 Website有大图像(缩略图)。在我的大屏幕 (1920 x 1080) 上,它们看起来不错。但在我较小的屏幕 (1280 x 1024) 上,它们看起来很糟糕。标准尺寸为 856 像素。如果屏幕无法处理,我希望缩略图更小。一些代码:

article .wp-post-image {
width: 856px;
height: auto;
margin-left: 0px;
margin-top: 3px;
float: left;

最佳答案

试试这个

article .wp-post-image {
float: left;
height: auto;
margin-left: 0;
margin-top: 3px;
max-width: 100%;
width: 856px;
}

 article .wp-post-image {
float: left;
height: auto;
margin-left: 0;
margin-top: 3px;
width: inherit;
}

  article .wp-post-image {
float: left;
height: auto;
margin-left: 0;
margin-top: 3px;
width: 785px;
}

关于css - 屏幕分辨率 css 上的图像大小,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29491482/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com