我的媒体查询并未应用于此,div .col-3尽管它确实适用于其他媒体查询。这是选择器/类的问题吗?
@media screen and (min-width: 600px) and (max-width: 719px) {
.col-3 {
flex: 0 50%;
max-width: 50%;
}
}
<div class="row fade show">
<div class="col-3">
<div class="ProductBox_root__13DPQ">
<div class="ProductBox_photo__Xs8BM"><img
src="https://images.pexels.com/photos/245208/pexels-photo-245208.jpeg?auto=compress&cs=tinysrgb&dpr=3&h=750&w=1260"
alt="Aenean Ru Bristique 1" class="ProductBox_image__1ECK5">
<div class="ProductBox_sale__1WcD7">sale</div>
<div class="ProductBox_buttons__uyJNx"><a href="#" class="Button_small__2W39u">Quick View</a><a href="#"
class="Button_small__2W39u"><svg aria-hidden="true" focusable="false" data-prefix="fas"
data-icon="shopping-basket" class="svg-inline--fa fa-shopping-basket fa-w-18 " role="img"
xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512">
<path fill="currentColor"
</path>
</svg> ADD TO CART</a></div>
</div>
让我确认一下我添加了
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
所以一定是别的东西。
慕标5832272
犯罪嫌疑人X
哆啦的时光机
浮云间
相关分类