gpt4 book ai didi

html - 无法选择图像以使其在小屏幕设备上变小

转载 作者:太空宇宙 更新时间:2023-11-03 22:16:32 24 4
gpt4 key购买 nike

我有 6 张图片,我需要它们在小屏幕上变小。但是我不能使用媒体查询使它们变小。我认为这与选择有关。

这是我当前的代码:

/* on large screens */
.devices {
height: 5.5em;
width: 11.5em;
margin: 0 1em;
}

/* Here is the problem, this code doesn't work */
@media (max-width: 768px) {
.devices {
height: 4.5em;
width: 9.5em;
}
}
<section>
<div class="container" id="applied-padding">
<div class="row">
<div class="col-sm-4">
<h2 id="h2-compatible">Paisjet e mbeshtutura Online TV</h2>
</div>
<div class="col-sm-8" id="compatible-with">
<img src="images/on-android-min.png" class="devices" alt="android">
<img src="images/on-android-min.png" class="devices" alt="android">
<img src="images/on-android-min.png" class="devices" alt="android">
<img src="images/on-android-min.png" class="devices" alt="android">
<img src="images/on-android-min.png" class="devices" alt="android">
<img src="images/on-android-min.png" class="devices" alt="android">
</div>
</div>
</div>
</section>

最佳答案

试试这个

@media screen and (max-width: 768px) {

}

关于html - 无法选择图像以使其在小屏幕设备上变小,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56539772/

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