CSS将检查屏幕的宽度,并且(如果足够小)将图片的显示更改为阻止。如所示W3Schools ...
<style>
.the-image,
.the-price {
display: inline-block;
}
@media only screen and (max-width:600px) {
.the-image {
display: block;
}
}
</style>
<img class="the-image" src="...">
<div class="the-price">...</div>