【发布时间】:2019-10-07 16:28:10
【问题描述】:
媒体查询不适用于 chrome 浏览器。这是我的 CSS,它在 chrome 浏览器上不起作用。
@media screen and (min-width:320px) and (max-width:1000px) {
.catalog-product-view section#body .product_page .detail_contentmain .detail_content {
width: 100% !important;
}
}
【问题讨论】:
-
这应该可以,你到
.detail_content的路径很可能不正确。首先检查检查元素是否有效,如果有效,请直接从那里复制并粘贴到您的代码中。 -
这段代码我们在firefox浏览器上工作
-
只是不适用于 chrome 浏览器
-
这是magento中的一个缓存问题,现在它在清除完整缓存后工作。 :)
标签: css media-queries